Enable protection from accidental deletion on all organizational units in Active Directory domain

As part of running the best practice analyser for Active Directory, I wanted to protect all organizational units from accidental deletion, this is achievable by using both theĀ Get-ADOrganizationalUnit and Set-ADOrganizationalUnit cmdlets. First of all I wanted to see which organizational units were not protected from accidental deletion, we can do this by invoking the Get-ADOrganizationalUnit … More Enable protection from accidental deletion on all organizational units in Active Directory domain