Protect an Organizational Unit from Accidental Deletion
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
You can use this procedure to add the following access control entries (ACEs):
On the organizational unit (OU) that you want to protect, add explicit Deny ACEs for the Delete and Delete Subtree advanced permissions for the Everyone group.
On the parent container of the OU that you want to protect, add an explicit Deny ACE for the Delete All Child Objects permission for the Everyone group.
This protects an OU from accidental deletion. When a user tries to delete the protected object, the operation returns an error that indicates access is denied.
To remove the protection, remove the Deny ACEs that you added for the Everyone group. For more information, see Remove Protection Against Accidental Organizational Unit Deletion.
Although bulk deletions are not common in the configuration partition data that you can view with the Active Directory Sites and Services snap-in, you can apply the same method to protect objects in the configuration partition by using adsiedit.msc.
Membership in the Domain Admins group, or equivalent, is required to complete this procedure.
To protect an OU from accidental bulk deletion
Log on to the computer as a member of the Domain Admins group.
Open Active Directory Users and Computers.
Click View, and then click Advanced Features.
First, apply permissions on the OU that you want to protect. To do this, right-click the OU that you want to protect, and then click Properties.
In OU Properties, click the Security tab, and then click Advanced.
On Advanced Security Settings, click Add, type Everyone, and then click OK.
In Permission Entry, in Permissions, select the Deny check boxes for Delete and Delete subtree.
Select the check box for Apply these permissions to objects and/or containers within this container only.
Click OK to close Permission Entry.
On Advanced Security Settings, click Apply.
Review the Windows Security warning, and then click Yes to continue.
Click OK to close the Advanced Security Settings, and then click OK to close OU Properties.
Second, apply permissions to the parent container of the OU that you want to protect. To do this, right-click the parent container, and then click Properties.
In ContainerProperties, click the Security tab.
Click Add, type Everyone, and then click OK.
In Permissions for Everyone, select the Deny check box for Delete All Child Objects, and then click Apply.
Review the Windows Security warning, and then click Yes to continue.
Click OK to close Container Properties.