Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the command to sync a Windows server domain controller to its configured time source?

share|improve this question
up vote 26 down vote accepted

As Kyle said w32tm /resync is the modern way to do this. See this Link to Microsoft Knowledgebase for more information on the w32tm command.

There is also net time which is an older version but perhaps easier.

share|improve this answer
w32tm /resync says "The computer did not resync because the required time change was too big." as my CMOS battery is dead and my computer clock resets on every boot at 1/1/2000 12:00 AM. Any help? – Never Quit Nov 4 '15 at 16:48
Found solution as per , do not forget to restart W32Time service net stop W32Time then retry w32tm /resync – Never Quit Nov 4 '15 at 17:14

You can use the following command:

w32tm /resync

share|improve this answer

You can use w32tm /resync. but additionally.

Using w32tm /resync /rediscover will also "force redetection of network resourced before resynchronization."

Or using:

net time /set

Will prompt you to set the time to the DC. (Works for older versions of Windows)

share|improve this answer
For some reason w32tm /resync didn't work for me but net time /SET /Y did. I used /Y for net time because it apparently doesn't read stdin properly when going through sshd from cygwin. – qwertzguy Jan 14 '15 at 3:40

For those that still asking this question.

  1. To update, use the command below (2008 and 2012 server compatible)

    w32tm /config /manualpeerlist:"ntp_server" /syncfromflags:manual /reliable:yes /update

change the ntp_server with your source

  1. Restart the time service

    net stop w32time
    net start w32time
  2. Resync the time

    w32tm /resync
  3. Verify your sync status

    w32tm /query /status

Commands above should be fine if your sources are working correctly and/or your connection is OK (firewall or Microsoft Forefront can be an issue also). The commands below can help with troubleshooting

To list out peers

w32tm /query /peers

To list out NTP Sources:

w32tm /query /source
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.