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 -

c# - Json.Net Serialize String from URI -

ruby on rails - What is the best design practise to create tables from same controller using same actions -