windows:server_os:windows_ntp

Differences

This shows you the differences between two versions of the page.


windows:server_os:windows_ntp [2019/10/31 09:06] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Configuring NTP in Windows ======
 +===== Manually configure the Windows Time service to use internal hardware clock =====
 +To configure the PDC master without using an external time source, change the announce flag on the PDC master. The PDC master is the server that holds the forest root PDC master role for the domain. This configuration forces the PDC master to announce itself as a reliable time source and uses the built-in complementary metal oxide semiconductor (CMOS) clock. To configure the PDC master by using an internal hardware clock, follow these steps:
 +  - Open **regedit**
 +  - Locate and then select the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags**
 +  - In the right-pane, right-click **AnnounceFlags**, and then select Modify.
 +  - In Edit DWORD Value, type **A** in the Value data box, and then select OK.
 +  - Close Registry Editor.
 +  - Restart the Windows Time service: **net stop w32time && net start w32time**
  
 +===== Manually configure the Windows Time service to use an external time source =====
 +To configure an internal time server to synchronize with an external time source, follow these steps:
 +   - Change the server type to NTP. To do this, follow these steps:
 +       - Open **regedit**
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type**
 +       - In the pane on the right, right-click Type, and then select Modify.
 +       - In Edit Value, type NTP in the Value data box, and then select OK.
 +   - Set AnnounceFlags to 5. To do this, follow these steps:
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags**
 +       - In the pane on the right, right-click AnnounceFlags, and then select Modify.
 +       - In Edit DWORD Value, type 5 in the Value data box, and then select OK.
 +           - If an authoritative time server that is configured to use an AnnounceFlag value of 0x5 does not synchronize with an upstream time server, a client server may not correctly synchronize with the authoritative time server when the time synchronization between the authoritative time server and the upstream time server resumes. Therefore, if you have a poor network connection or other concerns that may cause time synchronization failure of the authoritative server to an upstream server, set the AnnounceFlag value to 0xA instead of to 0x5.
 +           - If an authoritative time server that is configured to use an AnnounceFlag value of 0x5 and to synchronize with an upstream time server at a fixed interval that is specified in SpecialPollInterval, a client server may not correctly synchronize with the authoritative time server after the authoritative time server restarts. Therefore, if you configure your authoritative time server to synchronize with an upstream NTP server at a fixed interval that is specified in SpecialPollInterval, set the AnnounceFlag value to 0xA instead of 0x5. 
 +   - Enable NTPServer. To do this, follow these steps:
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer**
 +       - In the pane on the right, right-click Enabled, and then select Modify.
 +       - In Edit DWORD Value, type 1 in the Value data box, and then select OK.
 +   - Specify the time sources. To do this, follow these steps:
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters**
 +       - In the pane on the right, right-click NtpServer, and then select Modify.
 +       - In Edit Value, type Peers in the Value data box, and then select OK.
 +           - 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 that you make in step 5 will not take effect.
 +   - Select the poll interval. To do this, follow these steps:
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval**
 +       - In the pane on the right, right-click SpecialPollInterval, and then select Modify.
 +       - In Edit DWORD Value, type TimeInSeconds in the Value data box, and then select OK.
 +           - 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.
 +   - Configure the time correction settings. To do this, follow these steps:
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection**
 +       - In the pane on the right, right-click MaxPosPhaseCorrection, and then select Modify.
 +       - In Edit DWORD Value, click to select Decimal in the Base box.
 +       - In Edit DWORD Value, type TimeInSeconds in the Value data box, and then select OK.
 +           - TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend on the poll interval, network condition, and external time source. 
 +           - The default value of MaxPosPhaseCorrection is 48 hours in Windows Server 2008 R2 or later.
 +       - Locate and then click the following registry subkey: **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection**
 +       - In the pane on the right, right-click MaxNegPhaseCorrection, and then select Modify.
 +       - In Edit DWORD Value, click to select Decimal in the Base box.
 +       - In Edit DWORD Value, type TimeInSeconds in the Value data box, and then select OK.
 +           - TimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend on the poll interval, network condition, and external time source. 
 +           - The default value of MaxNegPhaseCorrection is 48 hours in Windows Server 2008 R2 or later.
 +   - Close Registry Editor.
 +   - Restart the Windows Time service: **net stop w32time && net start w32time**
  • windows/server_os/windows_ntp.txt
  • Last modified: 2019/10/31 09:06
  • by 127.0.0.1