Setting NTFS Permissions With Powershell
<p>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 <a href="http://techibee.com/powershell/grant-fullcontrol-permission-to-usergroup-on-filefolder-using-powershell/2158" rel="nofollow">here</a></p>

<pre><code>$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:\Users\username1\Desktop\TESTING2' -AclObject $acl
</code></pre>

<p>When I use CACLS to see the permissions I get the following output. (usernames+domain blurred) <a href="https://i.stack.imgur.com/w2IZF.png" rel="nofollow"><img src="https://i.stack.imgur.com/w2IZF.png" alt="CACLS output"></a></p>

<p>Can anyone advise how to make the first user listed have the same permissions as the last?</p>