Sync the domain via batch

Does anyone know how to sync the domain via a batch file.
lamar1Asked:
Who is Participating?
 
rwongConnect With a Mentor Commented:
Of course. But the bat file procedure is not automatic - you must know all the BDC names. Because you must know each BDC name to sync, you cannot simply force full sync at PDC and have it sync all BDCs. Instead, you must name each BDC for it to sync. To do this, use the NT4 resource kit. Run:

    NLTEST /SYNC /SERVER:servername

So, in your bat file, you enter:

    @echo off
    NLTEST /SYNC /SERVER:servername-1
    NLTEST /SYNC /SERVER:servername-2
    NLTEST /SYNC /SERVER:servername-3
    NLTEST /SYNC /SERVER:servername-4


0
 
lamar1Author Commented:
I'll check it out on thrusday, and put comments in....Thanks
0
 
lamar1Author Commented:
I did get an error on the PDC,
I_NetLogonControl failed: Status = 50 0x32 ERROR_NOT_SUPPORTED
but it seemed to work ok...Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.