Windows PowerShell Home
Set-ACL breaks inheritance when applied to remote share
5/21/2013 8:56:05 AM
User(s) can reproduce this bug
When using Set-ACL to modify the ACL on the root folder of a share, it breaks permissions inheritance so you can eventually be locked out of the folder. When I tried it on my 2012 lab, the owner could not be displayed, and every inherited permission was removed (after I took ownership back agin).
By modifying the ACL, in any way(edit a non-inherited permission, disable and re-enable inheritance etc) resets the ACL back to the default.
This does not happend when using Set-ACL on a folder inside a share (ex. \\server\mysharename\thisfolder )
How often does this happen?
Have you seen this problem before in this product?
I do not know if this issue existed previously
1. Share a folder. I called mine "mysharename"
2. Run this script from a remote computer:
$path = "\\server\mysharename"
$User = New-Object System.Security.Principal.NTAccount("CONTOSO\kim_akers")
$acl = Get-Acl $path
Set-Acl -AclObject $acl -path $path
3. Check the Security tab on the folder(can do this locally on the server).
Just a simple owner-change without anything else changing.
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
© 2013 Microsoft