PowerShell Logo Small

Set-SmbShare



This is the built-in help made by Microsoft for the command 'Set-SmbShare', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies the properties of the Server Message Block (SMB) share.

SYNTAX


Set-SmbShare [-AsJob [<SwitchParameter>]] [-CachingMode <CachingMode>] [-CATimeout <UInt32>] [-CimSession <CimSession[]>]
[-ConcurrentUserLimit <UInt32>] [-ContinuouslyAvailable <Boolean>] [-Description <String>] [-EncryptData <Boolean>] [-FolderEnumerationMode
<FolderEnumerationMode>] [-Force [<SwitchParameter>]] [-PassThru [<SwitchParameter>]] [-SecurityDescriptor <String>] [-ThrottleLimit <Int32>]
-InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-SmbShare [-Name] <String[]> [[-ScopeName] <String[]>] [-AsJob [<SwitchParameter>]] [-CachingMode <CachingMode>] [-CATimeout <UInt32>]
[-CimSession <CimSession[]>] [-ConcurrentUserLimit <UInt32>] [-ContinuouslyAvailable <Boolean>] [-Description <String>] [-EncryptData
<Boolean>] [-FolderEnumerationMode <FolderEnumerationMode>] [-Force [<SwitchParameter>]] [-PassThru [<SwitchParameter>]] [-SecurityDescriptor
<String>] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-SMBShare cmdlet modifies the properties of the Server Message Block (SMB) share.



<

RELATED LINKS

Get-SmbShare
New-SmbShare
Remove-SmbShare

REMARKS

<

Examples


EXAMPLE 1

PS C:\> Set-SmbShare -Name VMFiles -EncryptData $true
Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'Contoso-SO,VMFiles'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):



This example modifies the properties of an SMB share.




EXAMPLE 2

PS C:\> Set-SmbShare -Name VMFiles -EncryptData $true -Force



This example modifies the properties of an SMB share without user confirmation.