Thursday, August 09, 2012

Windows 7 use NTP when in domain

Having recently had to reload windows, one of the little things to irritate me was the clock being wrong. It would seem logical that any computer with a reliable web connection should have the correct time. Well the default situation for Windows 7, when in a domain is to not allow the user to select a NTP server to sync with. Sensibly, it will sync with the domain controller.

Unfortunately our domain controller does not have the correct time. So my clock was wrong, and there was no 'point and click' way to fix it.

After some searching around a solution was found.

  • Click 'Start' and type cmd in the search box
  • Right click cmd.exe in the results, and select 'Run as administrator'
  • At the command prompt, run the following:

c:\>w32tm /config /update /manualpeerlist:"" /syncfromflags:manual
c:\>net stop w32time
c:\>net start w32time

It would be good to change the URL in the first command to a suitable pool from this list based on your location.