Configure the Windows Time service on the PDC emulator in the Forest Root Domain

Updated: March 17, 2010

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Configure the Windows Time service (W32time) on the primary domain controller (PDC) emulator operations master (also known as flexible single master operations or FSMO) in the forest root domain when you deploy a new forest root domain or when you move the role of the PDC emulator in the forest root domain to a new domain controller. If you move the role of the PDC emulator to a new domain controller, you must also change the configuration of the Windows Time service on the previous PDC emulator. For more information, see Change the Windows Time service configuration on the previous PDC emulator.

ImportantImportant
If the PDC emulator for your forest root domain is not configured or if it is unable to synchronize time from an external source, the PDC emulator for the forest logs W32time Event ID 12 in the System log of Event Viewer. For additional troubleshooting information, see Microsoft Knowledge Base article 816042 (http://go.microsoft.com/fwlink/?LinkID=60402)

Before you configure the Windows Time service on the PDC emulator, you can determine the time difference between it and the source as a means to test basic Network Time Protocol (NTP) communication. After completing the configuration on the PDC emulator, be sure to monitor the System log in Event Viewer for W32time errors.

noteNote
For more information about the w32tm command, type w32tm /? at a command prompt or see Windows Time Service Tools and Settings on the Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=42984).

Administrative Credentials

To perform this procedure locally on the PDC emulator, you must be a member of the Administrators group. To perform this procedure from a remote computer, you must be a member of the Domain Admins group.

To configure the Windows Time service on the PDC emulator

  1. Open a Command Prompt.

  2. Type the following command to display the time difference between the local computer and a target computer, and then press ENTER:

    w32tm /stripchart /computer: target /samples: n /dataonly

     

    Value Definition

    target

    Specifies the Domain Name System (DNS) name or IP address of the NTP server that you are comparing the local computer's time against, for example, time.windows.com.

    n

    Specifies the number of time samples that will be returned from the target computer to test basic NTP communication.

  3. Open User Datagram Protocol (UDP) port 123 for outgoing traffic if needed.

  4. Open UDP port 123 (or a different port that you have selected) for incoming NTP traffic.

  5. Type the following command to configure the PDC emulator, and then press ENTER:

    w32tm /config /manualpeerlist: peers /syncfromflags:manual /reliable:yes /update

    where peers specifies the list of DNS names or IP addresses of the NTP time source that the PDC emulator synchronizes from. For example, you can specify time.windows.com. When specifying multiple peers, use a space as the delimiter and enclose them in quotation marks. For more information about the NTP servers that you can use, see Microsoft Knowledge Base article 262680 (http://go.microsoft.com/fwlink/?LinkID=60401).

    For example, to configure your PDC emulator to use the following list of fictional time servers:

    1. ntp1.fabrikam.com

    2. ntp.contoso.com

    3. time.fineartschool.net

    Run the following command:

    w32tm /config /manualpeerlist:”ntp1.fabrikam.com ntp.contoso.com time.fineartschool.net” /reliable:yes /update

See Also

Tags : timesync


Community Content

David Dewlow
Configure Windows Time service for an NTP Server list
If you want to point your Windows Time client to point to two different time servers, one named ntpserver.contoso.com and the other named clock.adatum.com, you would type the following from the command line:<br /><br /><b>w32tm /config /manualpeerlist:"ntpserver.contoso.com clock.adatum.com" /syncfromflags:manual /update<br /></b><br /><br />*Note: You may need to launch an elevated Command Prompt (right-click Run as administrator) in Windows Vista, Windows Server 2008, Windows Server 2008 R2 and Windows 7 to get this command to complete successfully.<br /><br />For a list of valid NTPServer's that you can reference, see KB article 262680 <b>http://support.microsoft.com/kb/262680</b>
Tags : contentbug ntp

SentXD
If entering a peer list doesn't work, try it this way.
<p>I entered the peer list as the example gave on my Server 2003 but it came back with: <br /></p> <blockquote dir="ltr"> <p>C:\&gt;w32tm /config /manualpeerlist:”ntp1.fabrikam.com ntp.contoso.com time.fineartschool.net” /reliable:yes /update<br />The following arguments were unexpected:<br /> ntp.contoso.com time.fineartschool.net</p> </blockquote> <p> <br /> </p> <p>I found that entering it with the quotes around the entire peer list parameter worked:<br /></p> <blockquote dir="ltr"> <p>C:\&gt;w32tm /config "/manualpeerlist:ntp1.fabrikam.com ntp.contoso.com time.fineartschool.net” /reliable:yes /update<br />The command completed successfully.<br /></p> </blockquote>

Luis Fermoi
Configure Windows Time service for an NTP Server list
Can I add specific local ip address to my time service?
Tags :

LinuxTime
opensource better than closed source
I would recommend ntp.ubunntu.com as the source, far more correct time, microsofts own is ~2.5min ahead of time.<br />
Tags : contentbug

Thomas Lee
Clarification on how to enter a peer list
The list of time servers must immediately follow the colon and the entire list must be enclosed in a single set of double-quotes, i.e.) /manualpeerlist:"time-a.timefreq.bldrdoc.gov time-b.timefreq.bldrdoc.gov time-c.timefreq.bldrdoc.gov".

Cavan1
Nevermind
<p>I thought the given example was incorrect but it isn't, so opps.</p>
Tags :

Arctic_Cruiser
Time Offset for PDC
Remember in Windows 2000/2003 to configure time service against a large time offset (ID 884776)

Page view tracker