Update the time source on a server using w32tm



I recently found that the time was off on one of our servers. Tracked down the domain controller it was using. That DC was pointint to itself for the time source, and the time was off by 3 minutes.

To fix this I pointed the DC to a NIST server by running the following commands.

  1. Display current configuration: w32tm /query /status
  2. Update the source: w32tm /config /syncfromflags:manual /manualpeerlist:time-a-www.nist.gov
  3. Stop the time service: net stop w32time
  4. Start the time service: net start w32time
  5. Wait a few minutes and confirm the updated time source: w32tm /query /status