Windows Time Service Registry Key Location
The Windows Time service (W32Time) maintains date and time synchronization across network devices and standalone systems running Windows. This article provides the exact Windows Registry paths used to manage and configure the W32Time service, detailing the primary key and its essential subkeys for controlling NTP servers, polling intervals, and service behaviors.
The Primary Registry Key
The core configuration for the Windows Time service is located at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
Under this main key, configuration settings are divided into several dedicated subkeys.
Key Subkeys and Their Functions
1. Parameters
Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
This subkey controls how the service synchronizes time and which external servers it contacts.
NtpServer(REG_SZ): Lists the DNS names or IP addresses of the NTP servers used for synchronization. Multiple servers are separated by spaces, often followed by a flag (e.g.,time.windows.com,0x9).Type(REG_SZ): Specifies the synchronization method:NoSync: Time service does not synchronize with external sources.NTP: Synchronizes with the servers listed inNtpServer.NT5DS: Synchronizes using domain hierarchy (default for domain members).AllSync: Uses all available synchronization mechanisms.
2. Config
Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
This subkey contains global operational parameters for the time engine.
AnnounceFlags(REG_DWORD): Controls whether the host advertises itself as a reliable time server.MaxPosPhaseCorrection(REG_DWORD): The maximum positive time difference (in seconds) that the service will adjust.MaxNegPhaseCorrection(REG_DWORD): The maximum negative time difference (in seconds) that the service will adjust.
3. TimeProviders
Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
This subkey manages settings specific to the NTP client functionality.
Enabled(REG_DWORD): Set to1to enable the NTP client, or0to disable it.SpecialPollInterval(REG_DWORD): Defines the polling interval in seconds when using the0x1or0x9flag with the NTP server entry.
4. TimeProviders
Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
This subkey controls whether the Windows machine operates as an NTP server for other clients.
Enabled(REG_DWORD): Set to1to allow other devices to synchronize time with this system.
Applying Registry Changes
After modifying any W32Time registry keys, restart the service or update the configuration using Command Prompt (run as Administrator):
net stop w32time && net start w32timeOr force an immediate configuration update:
w32tm /config /update