Lightning fast directory replication

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

    Requires Free Membership to View

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.

This was first published in November 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

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.