PowerShell Logo Small

Set-SmbPathAcl



This is the built-in help made by Microsoft for the command 'Set-SmbPathAcl', 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

Sets the ACL for the file system folder to match the ACL used by an SMB share.

SYNTAX


Set-SmbPathAcl [-ShareName] <String> [[-ScopeName] <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-SmbPathAcl cmdlet sets the access control list (ACL) for the file system folder to match the ACL for the server message block (SMB) share. The cmdlet sets the ACL to
match the SMB share itself. This action simplifies the configuration of NTFS or ReFS file system permissions by copying the SMB share permissions.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=321925

REMARKS

<

Examples


Example 1: Set the SMB path ACL by share name

PS C:\> Set-SmbPathAcl -ShareName "Share01"



This command sets the ACL on the file system folder used by the Share01 share to match the ACL of the share.




Example 2: Set the SMB path ACL by share name and scope name

PS C:\> Set-SmbPathAcl -ShareName "Share01" -ScopeName "SOFS01"



This command sets the ACL on the file system folder used by the Share01 share on the SOFS01 scope to match the ACL of the share.