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

Given a windows server 2003 domain server, I'd like to sync it's time to (any) external time services (it's off a couple of minutes). How to do this 1, manually; 2, in an automated manner every week?

share|improve this question
Did you not search? this question is asked all the time... – Christopher Edwards May 27 '09 at 19:23
up vote 8 down vote accepted

From the TechNet article:

To synchronize the domain controller with an external time source:

  1. Open a command prompt

  2. In the Command Prompt window, type the following line, where peers is a comma-separated list of IP addresses of the appropriate time sources, and press ENTER:
    w32tm /config /manualpeerlist: peers /syncfromflags:MANUAL

    The time sources you choose depend on your time zone. For example, if your domain controller is located in the Pacific Time zone, this line might read:
    w32tm /config /manualpeerlist: /syncfromflags:MANUAL

  3. Press ENTER. You should get a message that the command completed successfully.

  4. Type w32tm /config /update

  5. Press ENTER. You should get a message that the command completed successfully.

  6. To immediately synchronize with the external time server, type w32tm /resync and press ENTER. You should get a message that the command completed successfully.

  7. Type Exit and press ENTER.

share|improve this answer
Be aware that you may need to open the SNMP port on your firewall before the TechNet solution works. – Kyle Noland May 27 '09 at 20:07

Keep in mind that in an AD domain, the holder of the PDC emulator FSMO role is responsible for time sync, and should be the only one you configure for external access to a time source.

share|improve this answer
This is a good point. For any Directory Services, especially those with Kerberos, it's less important that the computers all have the "correct" time than it is that they all have the same time. – RobM Jun 5 '09 at 10:21

net time /setsntp:ntpserver

List of ntp servers

share|improve this answer

Or, if you want to script it, you can do it as a registry edit: Change the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer to the NTP server you want to use, followed by ",0x1": the default is ",0x1". The restart the Windows Time service and you're sorted.

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.