Windows Time Service Tools and Settings ·续2
| PollAdjustFactor | All versions | Controls the decision to increase or decrease the poll interval for the system. The larger the value, the smaller the amount of error that causes the poll interval to be decreased. The default value on domain members is 5. The default value on stand-alone clients and servers is 5. |
| SpikeWatchPeriod | All versions | Specifies the amount of time that a suspicious offset must persist before it's accepted as correct (in seconds). The default value on domain members is 900. The default value on stand-alone clients and workstations is 900. |
| TimeJumpAuditOffset | All versions | Indicates the time jump audit threshold, in seconds. The offset is stored as an unsigned integer. If the time service adjusts the local clock by setting the clock directly, and the time correction is more than this value, the time service logs an audit event. |
| UpdateInterval | All versions | Specifies the interval (in 10ms unit) between phase correction adjustments. A value of 0 has the same effect as 1. The default values are:<br>- Domain controllers: 100<br>- Domain members: 30,000<br>- Stand-alone clients and servers: 360,000 |
| UtilizeSslTimeData | Windows versions later than Windows 10 build 1511 | Indicates whether W32Time uses multiple SSL timestamps to seed a clock that's grossly inaccurate. A value of 1 indicates multiple SSL timestamps are used.<br>The UtilizeSslTimeData registry value refers to the secure time seeding feature. For more information, see Secure Time Seeding – improving time keeping in Windows.<br><br>The default out-of-box value for all Windows versions with this feature is 1 except for Windows Server 2025, where the default value is 0. Domain membership doesn't affect this setting. |
Parameters
| Registry entry | Versions | Description |
| --- | --- | --- |
| NtpServer | All versions | Specifies a space-delimited list of peers from which a computer obtains time stamps, consisting of one or more DNS names or IP addresses per line. Each DNS name or IP address listed must be unique. Computers connected to a domain must synchronize with a more reliable time source, such as the official US time clock.<br>- 0x1: SpecialInterval.<br>- 0x2: UseAsFallbackOnly.<br>- 0x4: SymmetricActive. For more information about this mode, see Windows Time Server.<br>- 0x8: Client.<br><br><br>There's no default value for this registry entry on domain members. The default value on stand-alone clients and servers is time.windows.com,0x1. |
| ServiceDll | All versions | Maintained by W32Time. It contains reserved data that's used by the Windows operating system, and any changes to this setting can cause unpredictable results. The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll. |
| ServiceDllUnloadOnStop | All versions | Controls whether the W32Time service should unload its DLL when the service is stopped. If the value is set to 1, the service unloads its DLL when it's stopped. With a value of 0, the service doesn't unload its DLL when it's stopped. Unloading the DLL can help to free up system resources, but it can also cause problems if other applications or services are using the DLL. The default value is 1. |
| ServiceMain | All versions | Maintained by W32Time. It contains reserved data that's used by the Windows operating system, and any changes to this setting can cause unpredictable results. The default value on domain members is SvchostEntry_W32Time. The default value on stand-alone clients and servers is SvchostEntry_W32Time. |
| Type | All versions | Indicates which peers to accept synchronization from:<br>- NoSync: The time service doesn't synchronize with other sources.<br>- NTP: The time service synchronizes with the servers specified in the NtpServer registry entry.<br>- NT5DS: The time service synchronizes with the domain hierarchy.<br>- AllSync: The time service uses all the available synchronization mechanisms.<br><br><br>The default value on domain members is NT5DS. The default value on stand-alone clients and servers is NTP. |
NtpClient
| Registry entry | Version | Description |
| --- | --- | --- |
| AllowNonstandardModeCombinations | All versions | Indicates that nonstandard mode combinations are allowed in synchronization between peers. The default value for domain members is 1. The default value for stand-alone clients and servers is 1. |
| CompatibilityFlags | All versions | Specifies the following compatibility flags and values:<br>- 0x00000001: DispersionInvalid<br>- 0x00000002: IgnoreFutureRefTimeStamp<br>- 0x80000000: AutodetectWin2K<br>- 0x40000000: AutodetectWin2KStage2<br><br><br>The default value for domain members is 0x80000000. The default value for stand-alone clients and servers is 0x80000000. |
| CrossSiteSyncFlags | All versions | Determines whether the service chooses synchronization partners outside the domain of the computer. The options and values are:<br>- 0: None<br>- 1: PdcOnly<br>- 2: All<br><br><br>This value is ignored if the NT5DS value isn't set. The default value for domain members is 2. The default value for stand-alone clients and servers is 2. |
| DllName | All versions | Specifies the location of the DLL for the time provider.<br>The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll. |
| Enabled | All versions | Indicates whether the NtpClient provider is enabled in the current time service.<br>- 1: Yes<br>- 0: No<br><br><br>The default value on domain members is 1. The default value on stand-alone clients and servers is 1. |
| EventLogFlags | All versions | Specifies the events logged by W32Time.<br>- 0x1: Reachability changes<br>- 0x2: Large sample skew (applicable to Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, and Windows Server 2008 R2 only)<br><br><br>The default value on domain members is 1. The default value on stand-alone clients and servers is 1. |
| InputProvider | All versions | Indicates whether to enable the NtpClient as an InputProvider, which obtains time information from the NtpServer. The NtpServer is a time server that responds to client time requests on the network by returning time samples that are useful for synchronizing the local clock.<br>- 1: Yes<br>- 0: No<br><br><br>The default value for both domain members and stand-alone clients is 1. |
| LargeSampleSkew | All versions | Specifies the large sample skew for logging, in seconds. To comply with Security and Exchange Commission (SEC) specifications, this value should be set to three seconds. Events are logged for this setting only when EventLogFlags is explicitly configured for a large sample skew value of 0x2. The default value on domain members is 3. The default value on stand-alone clients and servers is 3. |
| LastClockRate | All versions | Maintained by W32Time. It contains reserved data that's used by the Windows operating system, and any changes to this setting can cause unpredictable results. The default value on domain members is 156,250. The default value on stand-alone clients and servers is 156,250. |
| ResolvePeerBackoffMaxTimes | All versions | Specifies the maximum number of times to double the wait interval when repeated attempts to locate a peer to synchronize with fail. A value of 0 means that the wait interval is always the minimum. The default value on domain members is 7. The default value on stand-alone clients and servers is 7. |
| ResolvePeerBackoffMinutes | All versions | Specifies the initial interval to wait, in minutes, before attempting to locate a peer to synchronize with. The default value on domain members is 15. The default value on stand-alone clients and servers is 15. |
| SpecialPollInterval | All versions | Specifies the special poll interval in seconds for manual peers. When the SpecialInterval 0x1 flag is enabled, W32Time uses this poll interval instead of a poll interval determined by the operating system. The default value on domain members is 3,600. The default value on stand-alone clients and servers is 604,800.Starting with build 1703, SpecialPollInterval is contained by the MinPollInterval and MaxPollInterval registry values under the W32Time\Config subkey. |
| SpecialPollTimeRemaining | All versions | Maintained by W32Time. It contains reserved data that's used by the Windows operating system. It specifies the time, in seconds, before W32Time resynchronizes after the computer restarts. Any changes to this setting can cause unpredictable results. The default value on both domain members and on stand-alone clients and servers is a blank value. |
NtpServer
| Registry entry | Versions | Description |
| --- | --- | --- |
| AllowNonstandardModeCombinations | All versions | Indicates that nonstandard mode combinations are allowed in synchronization between clients and servers. The default value for domain members is 1. The default value for stand-alone clients and servers is 1. |
| ChainDisable | All versions | Controls whether the chaining mechanism is disabled. If chaining is disabled, the value is 0, and a read-only domain controller (RODC) can synchronize with any domain controller, but hosts that don't have their passwords cached on the RODC aren't able to synchronize with the RODC. This value is a boolean setting, and the default value is 0. |
| ChainEntryTimeout | All versions | Specifies the maximum number of seconds that an entry can remain in the chaining table before the entry is considered to be expired. Expired entries can be removed when the next request or response is processed. The default value is 16. |
| ChainLoggingRate | All versions | Controls the frequency in minutes at which an event that indicates the number of successful and unsuccessful chaining attempts is logged to the system log in Event Viewer. The default value is 30. |
| ChainMaxEntries | All versions | Controls the maximum number of entries that are allowed in the chaining table. If the chaining table is full and no expired entries can be removed, any incoming requests are discarded. The default value is 128. |
| ChainMaxHostEntries | All versions | Controls the maximum number of entries that are allowed in the chaining table for a particular host. The default value is 4. |
| DllName | All versions | Specifies the location of the DLL for the time provider. The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll. |
| Enabled | All versions | Indicates whether the NtpServer provider is enabled in the current time service. <br>- 1: Yes<br>- 0: No<br><br><br>The default value on domain members is 0. The default value on stand-alone clients and servers is 0. |
| EventLogFlags | All versions | Specifies the events logged by W32Time.<br>- 0x1: Events related to time changes<br>- 0x2: Events related to the system clock being updated<br>- 0x4: Events related to the service starting and stopping<br><br><br>The default value on domain members is 1. The default value on stand-alone clients and servers is 1. |
| InputProvider | All versions | Indicates whether to enable the NtpClient as an InputProvider, which obtains time information from the NtpServer. The NtpServer is a time server that responds to client time requests on the network by returning time samples that are useful for synchronizing the local clock.<br>- 1: Yes<br>- 0: No<br><br><br>The default value for both domain members and stand-alone clients is 0. |
| RequireSecureTimeSyncRequests | Windows 8 and later versions | Controls whether the DC responds to time sync requests that use older authentication protocols. If this setting is enabled (set to 1), the DC doesn't respond to requests that use such protocols. This value is a boolean setting, and the default value is 0. |
Enhanced logging
The following registry entries aren't part of the W32Time default configuration, but you can add them to the registry to obtain enhanced logging capabilities. You can modify the information that's logged to the system event log by adjusting the EventLogFlags settings in the Group Policy Object Editor. By default, W32Time logs an event every time that it switches to a new time source.
To enable enhanced W32Time logging, add the following registry entries into the HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config path.
| Entry | Versions | Description |
| --- | --- | --- |
| FileLogEntries | All versions | Controls the number of entries created in the W32Time log file. The default value is none, which results in no logs of W32Time activity. Valid values are 0 to 300. This value doesn't affect the event log entries that W32Time normally creates. |
| FileLogName | All versions | Controls the location and file name of the W32Time log. The default value is blank. It shouldn't be changed unless FileLogEntries is changed. A valid value is a full path and file name that W32Time uses to create the log file. This value doesn't affect the event log entries that W32Time normally creates. |
| FileLogSize | All versions | Controls the circular logging behavior of W32Time log files. When FileLogEntries and FileLogName are defined, this value is also defined. It contains the size in bytes that the log file can reach before it overwrites the oldest log entries with new entries. Use 1,000,000 or a larger value for this setting. This value doesn't affect the event log entries that W32Time normally creates. |
