The short answer is that you cannot accomplish this task in this way. The
"Allow inheritable permissions from parent to propagate to this object"
check box is not an AD attribute and cannot be modified by any variation of
the script you are trying to use.
If you use ADSIEdit to examine an OU you will see that such an attrribute
doesn't exist - which is why you are getting the error message.
The checkbox is set on the security tab of the object - use the Advanced tab
To change the setting with a script you need something like this
## sets the "Allow inheritable permissions from parent to propagate to this
$ou = [ADSI]"LDAP://ou=sectest2,ou=sectest,dc=psuguk,dc=org"
$sec = $ou.psbase.objectSecurity
$isProtected = $false ## allows inheritance
$preserveInheritance = $true ## preserver inhreited rules
You will need to wrap this code with loops through whatever objects you need
to set this for
Please note that all scripts are supplied "as is" and with no warranty
PowerShell User Group: http://www.get-psuguk.org.uk
> Using Powershell Scripting to Bulk Modify Active Directory Objects
> I would like to bulk modify the "Allow inheritable permissions from parent
> to propagate to this object" check box.
> I`ve tried:
> [PS] C:\\admodify.ps1 "OU=test,OU=Dev,DC=lab,DC=ad" "(&(objectClass=user))"
> Subtree DACL_PROTECTED 4096
> WARNING: System.DirectoryServices.DirectoryServicesCOMException
> (0x8007200A): Th
> e specified directory service attribute or value does not exist. (Exception
> HRESULT: 0x8007200A)
> Any suggestions how this could be accomplished?
> Jan Egil R.