Here is a quick command you can run to protect an OU’s objects.

In this Example the OU we’re protecting is “OU=Users,OU=Test,DC=Test,DC=com”

Get-ADobject -Filter * -SearchBase "OU=Users,OU=Test,DC=Test,DC=com" | Set-adobject -ProtectedFromAccidentalDeletion $true

Now all the objects in the OU will be protected.

image