PowerShell Logo Small

Set-SmbShare



This is the built-in help made by Microsoft for the command 'Set-SmbShare', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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] [-CachingMode <CachingMode>] [-CATimeout <UInt32>] [-CimSession <CimSession[]>] [-ConcurrentUserLimit <UInt32>] [-ContinuouslyAvailable <Boolean>]
[-Description <String>] [-EncryptData <Boolean>] [-FolderEnumerationMode <FolderEnumerationMode>] [-Force] [-PassThru] [-SecurityDescriptor <String>] [-ThrottleLimit
<Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-SmbShare [-Name] <String[]> [[-ScopeName] <String[]>] [-AsJob] [-CachingMode <CachingMode>] [-CATimeout <UInt32>] [-CimSession <CimSession[]>] [-ConcurrentUserLimit
<UInt32>] [-ContinuouslyAvailable <Boolean>] [-Description <String>] [-EncryptData <Boolean>] [-FolderEnumerationMode <FolderEnumerationMode>] [-Force] [-PassThru]
[-SecurityDescriptor <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289990
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.