Question

We had a bad day yesterday. One of our Domain Admins deleted an OU containing 700+ users and the same amount of computers as well as assorted other useful things like groups etc.

We restored from a backup, but it wasn't pretty.

I know that ADUC asks you if you're sure etc... but I'd like it if it was not possible to delete this particular OU without going into something like ADSIEdit to set it "allowable" for deletion - thereby not allowing people to delete without actually opening a new app and specifically indicating that "YES - I know what I'm doing". This would have the added benefit of stopping accidental miscoding from deleting critical AD objects.

Any such attribute or method that you folks could think of?

Was it helpful?

Solution

Simply remove the permission to delete things from those unable to get it right. You can give very fine-grained permissions in AD.

There is no "readonly" attribute. That's what the ACLs are for.

OTHER TIPS

There is a feature in AD for Win2k3 and higher to mark an object to prevent accidental deletion. This check box on the object actually changes the underlying permissions for you to remove delete permissions. Therefore it is not tool specific and must be respected by other tools (like powershell and vbscript).

You could deny the Delete privalge from Administrators through Delegation at the root level and then you would need to be an enterprise admin to perform deletions. Ensure that no admins are in the Enterprise Admins group for day-to-day usage.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top