A new tick box was included in Active Directory Users and computer with Windows server 2008 - the ability to block the deletion of an object even if the user has admin rights to that object. Looking behind the scenes at what that tick box does is actually add a Deny permission to the ACL of the object for you. Without the AD management pack, when trying to script this to ensure all OU's are protected, you cannot check for this tickbox - You have to enumerate the permissions and verify all (yes, there is more than 1 permission added) exist. Consequently, to 'tick' the box by a script, you have to add all the permissions which can be complicated. I have managed to do this but it got too deeply involved in .net to be a simple solution. In the advent of the AD management pack for powershell though, life is made quite a lot simpler. The following (one-liner!) will do the job for you. Get-ADOrganizationalUnit -filter {*} -searchbase (get...
Powershell for Active Directory