Subscribe to Windows IT Pro
April 21, 2011 02:41 PM

Recovering from Active Directory Disasters

How to restore DCs and AD objects
Windows IT Pro
InstantDoc ID #129989
Rating: (1)

Active Directory (AD) is typically one of the key network services in an organization. Without it, everything comes to a grinding halt. With this in mind, it’s important to be prepared for the various disasters that might strike a forest.

When it relates to AD, the scope of the disaster can vary quite a bit. It can be as simple as the failure of single domain controller (DC) or the accidental deletion of a single object. An even worse situation is when an entire organizational unit (OU) hierarchy is accidentally deleted. In the worst case scenario, an entire domain or forest might need to be restored.

The good news is that many of the techniques that apply to recovering from simple disasters also apply to recovering from catastrophic disasters. I’ll discuss how to recover from the two most common calamities: a failed DC and accidentally deleted objects.

 

Backup Strategy

You first need to make sure that you have something to use for a recovery. At a minimum, you should have valid system state backups of at least two DCs in each domain in your AD forest. Windows Server Backup (Windows Server 2008 and later), NTBackup (Windows Server 2003 and Windows 2000 Server), and most commercially available backup tools can perform valid system state backups. However, it’s always worth testing the backups to make sure everything is in order. One important point regarding backup tools is that you should use a Volume Shadow Copy Service (VSS)–aware backup tool. Backup tools that rely on disk imaging or virtual machine (VM) snapshot technologies are generally incompatible with AD. Restoring a backup made by one of these tools can cause serious replication failures known as update sequence number (USN) rollback.

In many organizations, the responsibility for server backups and restores falls to a different team than the team that runs AD. This leads to a couple of problems. First, you have no direct control over the backup process, which makes validating backups difficult. Second, many backup tools require an agent on each DC being backed up, which indirectly provides elevated access to the DC.

To mitigate these problems, I frequently employ a two-tiered approach to DC backups. I use a script to run Windows Server Backup each night on the DC and keep a week or two of backups locally on the DC. The folder containing the backups is then shared, with access restricted to the backup tool, as many backup tools can back up a file share without an agent. I also sometimes store the backup files on neighboring DCs within a site. So, for example, if you have DC1 and DC2 in a site, the backups of DC1 are stored on a file share on DC2 and vice versa.

The benefits of this two-tiered approach include:

  • You mitigate some of the risk of being dependent on another team for backups.
  • In the event you need to perform a restore, you can proceed right away with the native backup files you have on hand versus waiting for another team to perform the restore.
  • You’re not waiting for a backup to copy over the WAN from another site in the event backups are performed remotely.

I posted the script I use to run Windows Server Backup as well as directions for setting it up in my article, "Managing Local Backups with Windows Server Backup".

 

DC Recovery

One of the great things about AD is the mostly stateless nature of the DC. Aside from potentially holding one or more Flexible Single-Master Operation (FSMO) roles, a DC should generally be a matching replica of other DCs in the domain, except for some potential delay in replication depending on your topology. If a failure renders a DC inoperable, this stateless nature is fantastic because it will often remove the need to go through a complicated restore from a backup. Instead, you can simply reinstall Windows and use Dcpromo to promote the server to a DC and replicate all of the data back in—assuming your domain has more than one DC. If you only have one DC in your domain, you can greatly reduce your exposure to failure by deploying a second one.

Related Content:

ARTICLE TOOLS

Comments
  • Morgan Holm
    11 months ago
    Jun 02, 2011

    My name is Morgan Holm and I am the director of product management for the Blackbird Group. We have a software solution created to directly solve the issue described in the article and other common accidental AD modifications, Blackbird recovery for AD http://www.blackbird-group.com/products/blackbird-management-suite/recovery-for-ad . The solution allows you to rollback unwanted changes or to revert to a prior state at the container, object or even attribute level for Active Directory. See the following video demonstrating the recovery of an accidental OU deletion http://www.blackbird-group.com/screencams/OU%20Deletion%20-%20August%2013/OU%20Deletion%20-%20August%2013_controller.swf?width=620&height=480

    This is part of the Blackbird Management suite which includes realtime auditing of AD and file system, access rights reporting, protection and privilege management all available within a single console and application server.

  • Lorenzo0o0
    1 year ago
    May 26, 2011

    Great write-up! Ill never forget, during my first couple weeks at my very first job out of college, I accidentally deleted an organizational unit and panicked when I had no idea how to recover. I now know that there are several ways to recover after these types of disasters, but back then I had no idea what to do. I must have spent an entire afternoon looking for a free recovery product :) I can personally vouch for netwrix AD object restore wizard, it probably saved my job (thank you netwrix)-- www.netwrix.com. Itallowed me to roll back the change i made and restore the OU. AD disasters are no fun!

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.