Home > Windows Server Tips > Windows Server Monitoring and Management > Avoid DC restoration problems with authoritative restore
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SERVER MONITORING AND MANAGEMENT

Avoid DC restoration problems with authoritative restore


Brien M. Posey
11.15.2007
Rating: -4.80- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


In most cases, restoring a backup is a pretty cut-and-dried operation. There really isn't anything overly complicated about restoring individual files. Things can get a bit tricky though if you end up having to restore a domain controller. Let's take a look at why this is the case and how to achieve the result you want when restoring a DC.

Why are domain controllers tricky?

As most administrators know, domain controllers contain a copy of the Active Directory database. What makes things interesting is that there are typically multiple DCs in a domain, and Windows attempts to keep these domain controllers synchronized. It is this synchronization process that can be problematic.

Any time a change is made to the Active Directory database, that change is assigned a number. A change can include everything from creating a user account to deleting a group to changing an object's attributes. The numbers that are assigned when a change is made are sequential so that Windows can identify what order the changes were made in.

When you restore a domain controller, that domain controller's Active Directory database reverts to the state that it was in at the time the backup was made. After the restoration is complete, Windows looks at the number that is assigned to the most recent change made to that domain controller and compares it to the changes made to other DCs. Whatever changes have been made to the Active Directory since the time the backup was made are then replicated from one of the other domain controllers to the newly restored domain controller through a process called back filling. Eventually, the back-filling process will bring the newly restored domain controller's copy of the AD database up to date.

Back filling does have its share of drawbacks, however. For example, suppose you accidentally delete a bunch of user accounts. You could restore the backup of a domain controller to get those accounts back, but Windows will


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Windows Server Monitoring and Management
Simple tools and techniques for finding Windows memory leaks
Top Windows server hardening standards and guidelines
Hyper-V gains new resiliency features with Windows Server 2008 R2
Troubleshooting Windows print spooler crashes
Windows server hardening: How much is enough?
Terminal Services grows up with Windows Server 2008 R2
Top five Server Core management tips for Windows 2008
Windows Server 2008 R2: Not your father's R2 upgrade
The bottom line on Microsoft Hyper-V
Does Microsoft Hyper-V fit in the dynamic data center?

Microsoft Windows Server 2003 Administration
How to install Windows Server 2003 patches when offline
Validating Windows server clusters with ClusPrep
Exploring the Windows Server 2003 Resource Kit: Clusfileport.dll
Exploring the Windows Server 2003 Resource Kit: Cmdhere.inf and CMGetCer.inf
Windows server security management: Security expert roundup
Windows server management with Remote Desktop
Exploring the Windows Server 2003 Resource Kit: Confdisk.exe
Exploring the Windows Server 2003 Resource Kit: Compress.exe and Expand.exe
Exploring the Windows Server 2003 Resource Kit: Clusterrecovery.exe
How to use Microsoft's IIS Diagnostics Toolkit
Microsoft Windows Server 2003 Administration Research

Windows Server Monitoring and Administration
Top five Server Core management tips for Windows 2008
Top free tools for Windows server administration
Windows Server 2008 Learning Guide
A quick guide to Server Manager for Windows Server 2008
Moving dynamic disks to a new Windows server
A first look at Storage Explorer for Windows Server 2008
Tips for Windows domain controller optimization
Take control of server clusters with Microsoft's ClusDiag tool
Analyze server history with new tool in Windows 2008
Determining the cause of Windows server hang

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


actually delete them again. The back-filling process acknowledges the deletion of those accounts as a change that has occurred since the backup was made. Therefore, Windows will delete the newly restored user accounts in an effort to bring the newly restored database up to a current state.

You can get around this problem by performing an authoritative restore. An authoritative restore works by assigning new sequence numbers to restored data. As such, Windows replicates the newly restored data to the other domain controllers rather than having the newly restored data be overwritten by data that is replicated from the other DCs.

Performing an authoritative restore

Performing an authoritative restore of a DC requires a special procedure. The first thing you will have to do is boot the server into Directory Services Restore Mode. To do so, simply reboot the server and press F8 during the earliest phases of the boot process to access the Windows Advanced Options menu. When prompted to select an option, choose the Directory Services Restore Mode option.

The next part of the restoration process is probably what you would expect. You must perform a system state restore. If you are using NTBACKUP, be sure to set the advanced restore options to Restore Security Settings, Restore Junction Points (but not the folders or files that they reference) and Preserve Existing Volume Mount Points.

When the restore completes, you will be prompted to reboot your server. If you are performing a non-authoritative restore, then just go ahead and reboot the machine. If you want to perform an authoritative restore, though, you've still got some work to do.

To complete the process, open a Command Prompt window and enter the NTDSUTIL command. Upon doing so, Windows will display an NTDSUTIL prompt. You must now enter the AUTHORITATIVE RESTORE command, and tell Windows what portion of the Active Directory you want to mark as authoritative. You can authoritatively restore a single object or an entire subtree. To do so, you would use one of the following commands, followed by the distinguished name of the object or subtree that you want to restore. The distinguished name must be surrounded by quotation marks. Here is an example of how you would use the command to restore a subtree: NTDSUTIL will now display some text indicating whether or not the object or subtree has been marked for an authoritative restore. If you happen to receive an error message, double-check to make sure you entered the distinguished name correctly and included the quotation marks.

If you are running Windows Server 2003 without any service packs>, then you will have to manually restore back-linked data.

If you are using Windows Server 2003 with SP1 or higher, though, then NTDSUTIL will tell you if any of the objects you marked for an authoritative restore contain backlinks. If backlinks are found, then the text you see will look something like this: As you can see in the text above, NTDSUTIL has created a TXT file and an LDF file. In most cases you won't have to worry about the text file, but you must make note of the name of the LDF file.

At this point, use the QUIT command to exit NTDSUTIL and go ahead and reboot the server. When the server comes back up, give the Active Directory time to replicate. If you want to force the replication process to complete more quickly, then you can use the following command: For example, if the name of your domain controller is DC1, then the command would look like this: Now, to restore group memberships for previously deleted objects, you will have to restore any backlinks. To do so, enter the following command: In this particular case, the command would look like this: To complete the process, repeat this command on one domain controller in each domain that contains an object (typically a group) that was previously linked to an object that was recently restored.

[TABLE]

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts