Welcome to Dirteam.com/ActiveDir.org Blogs Sign in | Join | Help

Syndication

Tags

Moving the NTP service to a new PDCe

Want to move the time service to the new PDCe? 

This is something that is required if you have just moved the PDCe to a new Domain Controller.

First you need to reset the old PDCe time service, so that it is part of the domain heirarchy (Or you just want to reset a client back to default).
 
From a command prompt on the old NTP server
 "net time /setsntp: "                  (Note the blank space prior to the end ")
  The prior command line tells the DC to delete the current registry settings for the time service

Follow this by: 
 w32tm /config /syncfromflags:domhier /update
  The prior command line should reset the domain time hierarchy

Follow this by:
 net stop w32time && net start w32time
  This DC should now be part of the time domain heirarchy

Next you need to assign the NTP service to the new PDCe

To verify the PDCe role run the following from a command prompt

Netdom query fsmo

Once you have established the correct DC, follow the steps below as taken from KB816042

  1. Change the server type to NTP. To do this, follow these steps:
    1. Click Start, click Run, type regedit, and then click OK.
    2. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    3. In the right pane, right-click Type, and then click Modify.
    4. In Edit Value, type NTP in the Value data box, and then click OK.
  2. Set AnnounceFlags to 5. To do this, follow these steps:
    1. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
    2. In the right pane, right-click AnnounceFlags, and then click Modify.
    3. In Edit DWORD Value, type 5 in the Value data box, and then click OK.
  3. Enable NTPServer. To do this, follow these steps:
    1. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
    2. In the right pane, right-click Enabled, and then click Modify.
    3. In Edit DWORD Value, type 1 in the Value data box, and then click OK.
  4. Specify the time sources. To do this, follow these steps:
    1. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    2. In the right pane, right-click NtpServer, and then click Modify.
    3. In Edit Value, type Peers in the Value data box, and then click OK.

      Note Peers is a placeholder for a space-delimited list of peers from which your computer obtains time stamps. Each DNS name that is listed must be unique. You must append ,0x1 to the end of each DNS name. If you do not append ,0x1 to the end of each DNS name, the changes made in step 5 will not take effect.
  5. Select the poll interval. To do this, follow these steps:
    1. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval
    2. In the right pane, right-click SpecialPollInterval, and then click Modify.
    3. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK.

      Note TimeInSeconds is a placeholder for the number of seconds that you want between each poll. A recommended value is 900 Decimal. This value configures the Time Server to poll every 15 minutes.
  6. Configure the time correction settings. To do this, follow these steps:
    1. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection
    2. In the right pane, right-click MaxPosPhaseCorrection, and then click Modify.
    3. In Edit DWORD Value, click to select Decimal in the Base box.
    4. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK.

      Note TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.
    5. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection
    6. In the right pane, right-click MaxNegPhaseCorrection, and then click Modify.
    7. In Edit DWORD Value, click to select Decimal in the Base box.
    8. In Edit DWORD Value, type TimeInSeconds in the Value data box, and then click OK.

      Note TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.
  7. Quit Registry Editor.
  8. At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
    net stop w32time && net start w32time

 Reference - "Keeping the Domain on Time" a Microsoft Blog
http://blogs.msdn.com/b/w32time/archive/2007/09/04/keeping-the-domain-on-time.aspx

Reference - Ryan Sizemore's blogs on time
http://blogs.msdn.com/b/w32time/

Published Tuesday, May 18, 2010 2:35 PM by Paul Bergson

Comments

# New Directory Services Content 5/16-5/22 @ Friday, May 28, 2010 11:03 PM

KB 983254 The first data point that is in a Performance Monitor log .csv file may be a larger number

Ask the Directory Services Team

# Configuraci??n correcta de Time service en un entorno de dominio | 1sysadmin @ Thursday, May 23, 2013 2:17 PM

PingBack from http://jsperez.wordpress.com/2013/05/23/configuracion-correcta-de-time-service-en-un-entorno-de-dominio/

Configuraci??n correcta de Time service en un entorno de dominio | 1sysadmin

Anonymous comments are disabled