Parity123
asked on
Powershell: Protect from accidental deletion script
Hello All,
I have the following oneliner script:
$domaindn="dc=abc,dc=com"
Get-ADOrganizationalUnit -server abc.com -SearchBase "$domaindn" -Searchscope 1 -filter * -properties ProtectedFromAccidentalDel etion | set-adobject -ProtectedFromAccidentalDe letion:$tr ue
I am getting the following error:
"This access control list is not in canonical form and therefore cannot be modified"
Please help.
Regards,
I have the following oneliner script:
$domaindn="dc=abc,dc=com"
Get-ADOrganizationalUnit -server abc.com -SearchBase "$domaindn" -Searchscope 1 -filter * -properties ProtectedFromAccidentalDel
I am getting the following error:
"This access control list is not in canonical form and therefore cannot be modified"
Please help.
Regards,
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.