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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Something like this batch file should work:
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.
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
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.
ASKER
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