How to synchronize the clock of a windows server 2003 domain server?

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?


Solution 1:

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:131.107.1.10 /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.

Solution 2:

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.