I had a bit of trouble setting this up, it seems that most people want windows to be the NTP server and Linux to be the NTP client (seems like a bad idea to me). In the end, I found the solution at experts exchange and it seems that windows can act natively as the client. Even better, it's almost intuitive!
On the windows server, open a command shell:
C:\> Net Time /querysntp
--> this reported time.windows.com (but blocked by our firewalls
C:\> Net Time /setsntp:NTPserver.yourdomain
The command completed successfully.
C:\> net stop w32time
The Windows Time service is stopping.
The Windows Time service was stopped successfully.
C:\> net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.
C:\> w32tm /config /update
C:\> w32tm /resync
Sending resync command to local computer...
The command completed successfully.
C:\>
In order to see if it worked, open the event log -> System and you should have an entry like:
The time service is now synchronizing the system time with the time source NTPserver.yourdomain (ntp.m|0x0|xx.xx.xx.xx:123->xx.xx.xx.xx:123)
Popularity: 23% [?]


Latest Comments