Skip to main content

Configure NTP Server in AD

Option 1 - Via GPO

Setup GPO for NTP Server and apply it to the Domain Controller.

image.png

Setup GPO for NTP Client for Member Server

image.png


Option 2 - Manually via Regedit

Enable NTP Server in Domain Controller.

  1. Change the server type to NTP. To do this, follow these steps:
    1. Select Start > Run, type regedit, and then select OK.
    2. Locate and then select the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    3. In the pane on the right, right-click Type, and then select Modify.
    4. In Edit Value, type NTP in the Value data box, and then select OK.
    5. Example:
      image.png

  2. Set AnnounceFlags to 5. To do this, follow these steps:
    1. Locate and then select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    2. In the pane on the right, right-click AnnounceFlags, and then select Modify.
    3. In Edit DWORD Value, type 5 in the Value data box, and then select OK.
    4. Example:

      image.png


  3. Enable NTPServer. To do this, follow these steps:
    1. Locate and then select the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
    2. In the pane on the right, right-click Enabled, and then select Modify.
    3. In Edit DWORD Value, type 1 in the Value data box, and then select OK.
    4. Example:

      image.png


  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 pane on the right, right-click NtpServer, and then select Modify.
    3. In Edit Value, type Peers in the Value data box, and then select OK.
    4. Example:

      image.png


  5. 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

    2. In the pane on the right, right-click MaxPosPhaseCorrection, and then select 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 select OK.

    5. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

    6. In the pane on the right, right-click MaxNegPhaseCorrection, and then select 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 select OK.

    9. Example:

      image.png


  6. Close Registry Editor.

  7. At the command prompt, type the following command to restart the Windows Time service, and then press Enter:

net stop w32time && net start w32time