PowerShell To Set Folder Permissions

Specifying inheritance in the FileSystemAccessRule() constructor fixes this, as demonstrated by the modified code below (notice the two new constuctor parameters inserted between “FullControl” and “Allow”). $Acl = Get-Acl “\\R9N2WRN\Share” $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule(“user”, “FullControl”, “ContainerInherit,ObjectInherit”, “None”, “Allow”) $Acl.SetAccessRule($Ar) Set-Acl “\\R9N2WRN\Share” $Acl According to this topic “when you create a FileSystemAccessRule the way you have, … Read more