Avatar of saarmstrong
 asked on

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

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?

Microsoft Server OSWindows 2000

Avatar of undefined
Last Comment
Steven Carnahan

8/22/2022 - Mon
Steven Carnahan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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 ?

Steven Carnahan

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

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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.