CmdID / PowerShell / Cmdlets / New
New-SmbShare
Creates an SMB share. Windows Server PowerShell reference
From the Windows Server PowerShell reference 23 parameters Its page in the reference
Parameters
Show its 23 parameters
-AsJobRuns the cmdlet as a background job.-CachingModeSpecifies the caching mode of the offline files for the SMB share.-CATimeoutSpecifies the continuous availability time-out for the share.-ChangeAccessSpecifies which users are granted modify permission to access the share.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-CompressDataIndicates that SMB compression is requested for all client connections that support it.-ConcurrentUserLimitSpecifies the maximum number of concurrently connected users that the new SMB share may accommodate.-ContinuouslyAvailableIndicates that the share is continuously available.-DescriptionSpecifies an optional description of the SMB share.-EncryptDataIndicates that the share is encrypted.-FolderEnumerationModeSpecifies which files and folders in the SMB share are visible to users.-FullAccessSpecifies which accounts are granted full permission to access the share.-LeasingModeSpecifies SMB leasing and oplock behaviors for application compatibility.-NameSpecifies a name for the SMB share.-NoAccessSpecifies which accounts are denied access to the SMB share.-PathSpecifies the path of the location of the folder to share.-ReadAccessSpecifies which users are granted read permission to access the share.-ScopeNameSpecifies the scope name of the share.-SecurityDescriptorSpecifies the security descriptor for the SMB share in string format.-TemporarySpecifies the new SMB share is temporary and will not persist beyond the next restart of the computer.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.