Configuring Windows Time service to use an internal hardware clock
To have us configure the Windows Time service to use an internal hardware clock for you, go to the "
Fix it for me" section. If you prefer to fix this problem yourself, go to the "
Let me fix it myself" section.
Fix it for me
To fix this problem automatically, click the
Fix it button or link. Click
Run in the
File Download dialog box, and then follow the steps in the "Fix it" wizard.
Notes- This wizard may apply to English versions only. However, the automatic fix also works for other language versions of Windows.
- If you are not on the computer that has the problem, save the "Fix it" solution to a flash drive or to a CD, and then run the fix on the computer that has the problem.
Let me fix it myself
To configure the Windows Time service to use an internal hardware clock yourself, you can change the announce flag on the authoritative time server. Changing the announce flag forces the computer to announce itself as a reliable time source and to use the built-in complementary metal oxide semiconductor (CMOS) clock. To configure the Windows Time service to use an internal hardware clock, follow these steps.
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
- In the right pane, right-click AnnounceFlags, and then click Modify.
- In the Edit DWORD Value dialog box, type 5 under Value data, and then click OK.
- Enable NTPServer.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\
- In the right pane, right-click Enabled, and then click Modify.
- In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.
- Exit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press Enter:
net stop w32time && net start w32time
- To reset the local computers' time against the time server, run the following command on all the computers except the time server:
w32tm /resync /rediscover
Note You must not configure the time server to synchronize with itself. If you configure the time server to synchronize with itself, the following events are logged in the Application log:
The time provider NtpClient cannot reach or is currently receiving invalid time data from 192.168.1.1 (ntp.m|0x0|192.168.1.1:123->192.168.1.1:123).
No response has been received from Manual peer 192.168.1.1 after 8 attempts to contact it. This peer will be discarded as a time source and NtpClient will attempt to discover a new peer from which to synchronize.
The time provider NtpClient is configured to acquire time from one or more time sources. However, none of the sources are currently accessible. No attempt to contact a source will be made for 960 minutes. NtpClient has no source of accurate time.
When the time server runs by using an internal time source, the following event is logged in the Application log:
Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. We recommend that you either configure a reliable time service in the root domain, or that you manually configure the PDC to synchronize with an external time source. Otherwise, this computer will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.
This text notifies you that the time server is configured not to use an external time source and that the time server can be ignored.
For more information about the
w32tm command, run the following command from a command prompt:
w32tm /?
Configuring the Windows Time service to use an external time source
To have us help you configure an internal time server to synchronize with an external time source, go to the "
Fix it for me" section. If you prefer to fix this problem yourself, go to the "
Let me fix it myself" section.
Fix it for me
To fix this problem automatically, click the
Fix it button or link. Click
Run in the
File Downloaddialog box, and then follow the steps in the "Fix it" wizard.
Notes- This wizard may apply to English versions only. However, the automatic fix also works for other language versions of Windows.
- If you are not on the computer that has the problem, save the "Fix it" solution to a flash drive or to a CD, and then run the fix on the computer that has the problem.
Let me fix it myself
To configure the Windows Time service to synchronize with an external time source yourself, follow these steps:
- Change the server type to NTP. To do this, follow these steps:
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\
- In the right pane, right-click Type, and then click Modify.
- In the Edit Value dialog box, under Value data, type NTP, and then click 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\
- In the right pane, right-click AnnounceFlags, and then click Modify.
- In the Edit DWORD Value dialog box, type 5 under Value data, and then click OK.
Notes - 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.
- 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\
- In the right pane, right-click SpecialPollInterval, and then click Modify.
- In the Edit DWORD Value dialog box, type TimeInSeconds, under Value data, 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.
- 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 right pane, right-click Enabled, and then click Modify.
- In the Edit DWORD Value dialog box, type 1 under Value data, and then click 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 right pane, right-click NtpServer, and then click Modify.
- In Edit Value, type Peers in the Value data box, and then click OK.
- 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\
- In the right pane, right-click MaxPosPhaseCorrection, and then click Modify.
- In the Edit DWORD Value dialog box, click Decimal under Base.
- In the Edit DWORD Value dialog box, type TimeInSecondsunder Value data, and then click OK.
Note TimeInSeconds is a placeholder for a reasonable value, such as one hour (3600) or 30 minutes (1800). The value that you choose depends on the poll interval, the network condition, and the external time source. - Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
- In the right pane, right-click MaxNegPhaseCorrection, and then click Modify.
- In the Edit DWORD Value dialog box, click Decimal under Base.
- In the Edit DWORD Value dialog box, type TimeInSeconds under Value data, and then click OK.
Note TimeInSeconds is a placeholder for a reasonable value, such as one hour (3600) or 30 minutes (1800). The value that you choose depends on the poll interval, the network condition, and the external time source.
- Exit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press Enter:
net stop w32time && net start w32time
- Run the following command on computers other than the domain controller to reset each computer's time against the time server:
w32tm /resync /rediscover
For more information about the
w32tm command, run the following command from a command prompt:
w32tm /?
Note SNTP uses User Datagram Protocol (UDP) port 123. If this port is not open to the Internet, you cannot synchronize your server to Internet SNTP servers.