title: Applying ACL Permissions using PowerShell Set-Acl
body: <pre><code>New-Item -Type Directory -Path "C:\MyFolder"
  $Acl = Get-Acl "C:\MyFolder"
  $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule("username", "FullControl", "Allow")
  $Acl.SetAccessRule($Ar)
  Set-Acl -Path "C:\MyFolder" -AclObject $Acl
  </code></pre>
  
  <p>Hi, when I got the above code and applied it using my own settings - the user account entries are added for the folder but, no Permissions are applied (none ticked)</p>
  
  <p>Can anyone help with why this might be?</p>
  
  <p>Thanks</p>