New-UnityCIFSShare

SYNOPSIS

Creates CIFS share.

SYNTAX

New-UnityCIFSShare [-session <Object>] [-Filesystem] <String[]> -Path <String> -Name <String>
 -cifsServer <String> [-description <String>] [-isReadOnly <Boolean>] [-isEncryptionEnabled <Boolean>]
 [-isContinuousAvailabilityEnabled <Boolean>] [-isABEEnabled <Boolean>] [-isBranchCacheEnabled <Boolean>]
 [-offlineAvailability <CifsShareOfflineAvailabilityEnum>] [-umask <String>] [-WhatIf] [-Confirm]

DESCRIPTION

Creates CIFS share. You need to have an active session with the array.

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

New-UnityCIFSShare -Filesystem 'fs_1' -Name 'SHARE01' -path '/' -cifsServer 'cifs_1'

Create a new CIFS Share named 'SHARE01'

PARAMETERS

-session

Specify an UnitySession Object.

Type: Object
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true})
Accept pipeline input: False
Accept wildcard characters: False

-Filesystem

Specify Filesystem ID

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Path

Local path to a location within a file system.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Name of the CIFS share unique to NAS server

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-cifsServer

CIFS server ID to use for CIFS share creation, as defined by the cifsServer type

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-description

CIFS share description

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-isReadOnly

Indicates whether the CIFS share is read-only

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-isEncryptionEnabled

Indicates whether CIFS encryption for Server Message Block (SMB) 3.0 is enabled for the CIFS share

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-isContinuousAvailabilityEnabled

Indicates whether continuous availability for SMB 3.0 is enabled for the CIFS share

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-isABEEnabled

Enumerate file with read access and directories with list access in folder listings

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-isBranchCacheEnabled

Branch Cache optimizes traffic between the NAS server and Branch Office Servers

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-offlineAvailability

Offline Files store a version of the shared resources on the client computer in the file system cache, a reserved portion of disk space, which the client computer can access even when it is disconnected from the network

Type: CifsShareOfflineAvailabilityEnum
Parameter Sets: (All)
Aliases: 
Accepted values: Manual, Documents, Programs, None, Invalid

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-umask

The default UNIX umask for new files created on the share

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE

https://github.com/equelin/Unity-Powershell