Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 2004

Delayed-Replication AD Recovery

It's like turning back the hands of time
RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Including Application Partitions

Restore the object. Because the lag DC's copy of the directory still contains the object, you can restore it without the necessity of retrieving tape backups or restoring an old directory tree file. You can use Ntdsutil to increase the object's universal serial number (USN) by an increment of 100,000, thereby ensuring that the restored object will win the replication conflict.

  1. Reboot the delayed-replication DC you're using into Directory Service Restore Mode. To do so, press F8 at the OS selection screen during bootup and select the Directory Services Restore Mode option. You'll need to know the restore-mode password to log on.
  2. At a command prompt, type ntdsutil. Select the Authoritative Restore option by typing authoritative restore.
  3. Type restore object, followed by the object's DN. For example:
  4. restore object CN=jesse.sutela@hp.com,
    	OU=US,DC=wamericas,DC=wtest,
    	DC=cpqtest,DC=net
    This command should appear on one line. Wrap the DN in quotes if it contains any spaces. Press Enter.
  5. Reboot into regular mode.

Replicate the restored object into the rest of the domain. Determine which production DC in the domain is pulling updates from the delayed-replication DC by looking in the Active Directory Sites and Services snap-in. After you find the production DC that has a connection object from the delayed-replication DC you want, right-click the connection object and select Replicate Now to force the production DC to pull updates from the delayed-replication DC. The restored object should now replicate back to the production DC.

Recovering Crucial Information about the Deleted Object
If a user object has been deleted, restoring the object won't necessarily restore everything about that user. For example, when you restore a user object in Win2K, group memberships are lost. Therefore, you might also want look at the user's properties in the Active Directory Users and Computers snap-in. You can gather the group memberships for the user on the Member of tab of the account's Properties sheet. Windows 2003, in contrast, does a good job of fixing the domain group memberships after a restore. However, in either OS, membership in local groups of trusting domains will still be lost.

Keeping close track of local group memberships and logging that information will let you repopulate local groups after a user restore. This task might be tedious if you don't use some form of scripted automation. For more information about restoring groups, see "Resources," below.

Of course, other types of objects in AD might require restoration. One example is DNS data. Be mindful that DNS data might be stored within an application partition. Windows 2003 lets you move DNS data out of the default naming context and into an application. By default, application partitions aren't replicated to all DCs. For more information about how to ensure that your disaster-recovery plan includes application partitions, see the sidebar "Including Application Partitions,".

Up-Front Costs
You might think delayed replication sounds great, but the cost of having several extra servers sitting around, doing very little other than replicating once per week, will make the solution a hard sell to those in control of the IT budget. Bear in mind that a recovery site reduces the number of personnel necessary to recover a deleted object and decreases the amount of lost productivity for the affected user.

Besides using the justification that delayed replication is an insurance investment, you can further mitigate the up-front costs through the use of virtual servers. Assuming you have sufficient memory and processing power, all your recovery DCs could reside as virtual-server instances on one virtual-server host.

Turn Back Time
Recovery of deleted AD objects can be a lengthy process that involves more than one support group, particularly in midsized to large companies. Coordination of efforts and backup-tape location can lead to lengthy downtimes for users. In the event that a user account or entire subtree of objects is deleted, rapid recovery is crucial to keeping your business running smoothly. Using a delayed-replication site to facilitate the recovery of deleted objects is like turning back the hands of time.

Resources
MICROSOFT ARTICLES

"How to restore deleted user accounts and their group memberships in Active Directory"
http://support.microsoft.com/?kbid=840001

"Authoritative restore of groups can result in inconsistent membership information across domain controllers"
http://support.microsoft.com/?kbid=280079

"HOW TO: Perform an Authoritative Restore to a Domain Controller in Windows 2000"
http://support.microsoft.com/?kbid=241594

"HOW TO: Manage the Application Directory Partition and Replicas in Windows Server 2003"
http://support.microsoft.com/?kbid=322669

"How to Optimize the Location of a Domain Controller or Global Catalog That Resides Outside of a Client's Site"
http://support.microsoft.com/?kbid=306602

End of Article

   Previous  1  2  [3]  Next  


Reader Comments
perfect one!

johannes.frick July 20, 2004 (Article Rating: )


Geniality in simplicity - just have to think of it. More of these please!

Gerrekens August 05, 2004 (Article Rating: )


Absolutely Fantastic Article. Beautifully simple yet effective technique to address a real service delivery problem. JK.


joe8908 August 20, 2004 (Article Rating: )


Very nice, but this technique has a drawback: if you must reinstall a Server/XP/DC from scratch with the same name (f ex because of a major hardware issue), one must make sure the previous account is deleted from ALL DCs, including those in the delayed-replication site. Let's say you use delayed-replication on DC03, well after removing the old computer account from AD on another DC, you need to either wait for the delayed replication or delete the computer account manually on DC03.
If you do not, and join domain with the same computer name, the old computer account still exists on DC03. You will use that computer account, but it's about to be deleted and your restored server/xp/DC will soon find itself out of the domain...
Uncool. MVL.




MVL December 17, 2004 (Article Rating: )


MVL - Adding a computer to a domain will generate a new ObjectGUID so even if you use the same computer name, there shouldn't be a problem with the old computer object that's about to be deleted.

leachmj July 21, 2005 (Article Rating: )


Well, that's just the issue, because when you join domain, Windows will check if the computer name still exists on all DCs (including the "lagged" one). No new ObjectGUID is created... and tthe object gets deleted at the next replication cycle...
If one uses the netdom command and specifies the DC on which the account is created, then it's OK.

MVL November 21, 2006 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Active Directory (AD) Whitepapers Meeting Compliance Objectives in SharePoint

Email Controls and Regulatory Compliance

Related Events Troubleshooting Active Directory

Deep Dive into Windows Server 2008 R2 presented by John Savill

Troubleshooting Group Policy, eLearning series

Check out our list of Free Email Newsletters!

Active Directory (AD) eBooks The Essentials Series: Active Directory 2008 Operations

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement