step887 Posted August 30, 2013 Share Posted August 30, 2013 I would like to modify permissions on folder and then reset them. I can do this with permissions UDF '?do=embed' frameborder='0' data-embedContent>> I can do this $dirpath = 'X:\test\test\test' Local $arr[1][3],$aPerm[1][3] = [[@UserName, 1, $GENERIC_ALL]] Local $SID = _GetObjectOwner($dirpath) Local $owner = _LookupAccountSid($SID) $dacl = _GetObjectDacl($dirpath) _MergeDaclToArray($dacl,$arr) $out = _EditObjectPermissions($dirpath, $aPerm,1,@UserName);, MsgBox(0,'',@error & ' ' & $OUT & @CRLF) $out = _SetObjectPermissions($dirpath, $arr, 1,$owner, 1) but inherit permissons is not checked There is a function to reset tree permissions. I do not want to reset tree permisions, unless it was already set. I could not find a way to do this, anyone have any ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now