Link to home
Start Free TrialLog in
Avatar of saarmstrong
saarmstrong

asked on

Script or program to automatically sycn server 2000 time with an external source

Hi,
My PDC sitting at the root domain runs windows server 2000. In the past i have had issues with this server and its time synchronization.
Can anyone help with with a proper script or even a (paid/free) program that will periodically sync the time with an external NTP server of my choice?

Regards
ASKER CERTIFIED SOLUTION
Avatar of Steven Carnahan
Steven Carnahan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of saarmstrong
saarmstrong

ASKER

Thank you for your answer,
I was hoping for a solution where i wont have to fiddle around with the registry. Are there any softwares that would do that ?

regards
Something like this batch file should work:

w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org pool.ntp.org",0×8 /syncfromflags:MANUAL /reliable:yes
w32tm /config /update
net stop w32time
net start w32time
w32tm /resync /rediscover
pause

Open in new window


This will set your NTP to pool.ntp.org.  You can adjust to whatever server you would like to use.

The pause is there to allow you to see that it ran okay.

DISCLAIMER:  Always test code thoroughly on a non production machine prior to implementation.