Setting NTFS Permissions With Powershell
问题 Using the following powershell I have set the NTFS Permissions for a folder for full control. For some reason this is only applying to the folder and not its contents. I followed the instructions located here $username = "exampleuser" $permissionArgs = "domain\$username", "FullControl", "allow" $permissionRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permissionArgs $acl = Get-Acl 'C:\Users\username1\Desktop\TESTING2' $acl.SetAccessRule($permissionRule) Set-ACL -Path 'C