title: Added permission not inherited to sub folders/files
body: <p>Im trying to add modify right to bob user from domain, but it is giving only permission and no rights at all and even not inheriting to subfolder to path <code>D:\test</code>, from the script as below:</p>
  
  <pre><code>$Right = [System.Security.AccessControl.FileSystemRights]"Modify"
  $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::None 
  $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::InheritOnly  
  $objType =[System.Security.AccessControl.AccessControlType]::Allow
  $objUser = New-Object System.Security.Principal.NTAccount("domain\bob") 
  
  $objACE = New-Object System.Security.AccessControl.FileSystemAccessRule($objUser, $Right, $InheritanceFlag, $PropagationFlag, $objType) 
  
  $objACL = Get-ACL "D:\Test"
  $objACL.AddAccessRule($objACE)
  Set-ACL "D:\Test" -aclobject $objACL
  </code></pre>
  
  <p>Where is my mistake ?</p>