delegate 'Create all child objects' permission in OU

635 views Asked by At

I am using below script to delegate 'Create all child objects' permission in OU. It is working fine but Inheritance Type is getting set to 'This Object only'. How Can I set the Inheritance Type to 'This Object and all descendent Objects'.

$acl.AddAccessRule((New-Object System.DirectoryServices.CreateChildAccessRule $s,"ALLOW"))

I have tried below overloads but none seem to work:

$acl.AddAccessRule((New-Object System.DirectoryServices.CreateChildAccessRule $s,"ALLOW",'SelfAndChildren',([GUID]("00000000-0000-0000-0000-000000000000")).guid))


$acl.AddAccessRule((New-Object System.DirectoryServices.CreateChildAccessRule $s,"ALLOW",'All'))
0

There are 0 answers