active directory - How to Enable Inherent Permission of an OU to All Users via Powershell -
some of members in ou have inheritance disabled. how can in powershell? gui window if helps trying ask...
to automate button on screenshot, here's code, from there:
function set-inheritance { param($objectpath) $acl = get-acl -path "ad:\$objectpath" if( $acl.areaccessrulesprotected ){ $acl.setaccessruleprotection( $false, $true ) set-acl -aclobject $acl -path "ad:\$objectpath" write-host "modified "$objectpath } #end if } #end function set-inheritance
Comments
Post a Comment