Home > Windows Tips > > Lightning fast directory replication
Win IT Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Lightning fast directory replication


Bob Fuller
11.05.2002
Rating: -4.18- (out of 5) Hall of fame tip of the month winner


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


This tip was submitted to the SearchWin2000.com Tip Exchange by member Bob Fuller. Let other users know how useful it is by rating the tip below.


Here's a very fast way to force a full directory replication between domain controllers -- without having to use the Sites and Services MMC snap-in.

Have you made a change and want to make certain that all your DCs take the update? Even on some of the "instant" changes, I sometimes find that one or more DCs didn't get it in time. How did I manage? Well, until I discovered the little file I am going to share with you below, I was using the Sites and Services snap-in -- and having to click 20 or 30 items for every instance, thereby wasting an enormous amount of my valuable time.

From the Windows 2000 support tools, this little command line tool, stuck into a batch file, works wonderfully! The tool is 'REPADMIN.EXE' and here is a very small batch file I was using successfully in a test lab:

  • :start
  • REM Batch file for full directory replication
  • repadmin /sync dc=lab,dc=t-bird,dc=edu labdc01 9d8596a4-d3c2-4287-a9a1-598e03a63dc0 /full
  • repadmin /sync dc=lab,dc=t-bird,dc=edu labdc03 a05c16c7-8dab-4ace-bf02-c26fa95b2679 /full
  • :end
As you can see, you only need a minimal understanding of LDAP, and a little registry hunting skill, to find the ID of the second DC. Each of these lines forces a full synchronization to another server -- these two lines completely update a 3 DC tree. I saved them as 'REPL.BAT' and whenever I make a change to the directory, I immediately run this batch file. One double click, and voila! -- Full rep in just a couple of seconds!

If you manually initiate replications, and most admins I've met do, you'll find this batch file incredibly useful. It takes a little effort to create, but once you're done, I'm positive that you'll love it.

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


Submit a Tip




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



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

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.



Windows Technology Updates, Reviews and Solutions

Laptop Discounts with free coupon codes, huge savings at Notebook Review

HomeNewsTopicsITKnowledge 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 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts