Keep Windows on time with the built-in Windows Time service

I had to keep a W2K machine on time as its main job is to control clocks in different locations. It turns out that Windows as a built-in SNTP client that can be set to retrieve the time from public SNTP servers.

The idea is to give Windows a list of time servers to check and then restart the Windows Time service for the change to take effect.

So, first you need a list of available SNTP time servers.

Then, you use the net time command to enter a list of time servers, e.g.:

C:\>net time /setsntp:"ns.scruz.net ntp.ucsd.edu ntp1.mainecoon.com"

Finally, you restart the Windows Time service:

C:\>net stop W32Time
C:\>net stop W32Time

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s