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... enter image description here

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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -