Thursday, 29 October 2015

Protecting All OUs in the Domain from Accidental Deletion

You can issue this line of PoSh at a domain controller to prevent any accidental deletion of AD OUs

Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true

No comments:

Post a Comment