WindowsTime
WindowsTime
time.windows.com
time.nist.gov
You can find the list of internet servers that your computer synchronizes time with using
the Control Panel > Date and Time > Internet time tab > Change Settings. As you can
see this computer is set to automatically synchronize with ‘time.windows.com’ and
the Synchronize with an Internet time server option is enabled.
The list of these Internet time servers is stored in the Windows registry under
the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers key.
Hint. Learn more about time syncing in an Active Directory domain using GPO.
The Windows Time Service (W32Time) is responsible for time synchronization. First of
all, make sure this service is running on a Windows client computer using Get-
Service cmdlet:
You can check with which NTP server (NTP source) your computer is currently
synchronizing the time by using the command:
In an AD domain, you can list the domain controllers with which time synchronization
can be performed:
w32tm /monitor
For computers in an Active Directory domain, you can use the following commands to
enable time synchronization with a DC:
w32tm /config /syncfromflags:domhier /update
The Windows Time service parameters are stored under the HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\Services\W32Time\Parameters registry key. The
synchronization mode is set using the Type parameter. If you change the Type value
to NoSync, you completely disable time synchronization in Windows.
If the NT5DS time synchronization type is used, the time source specified in the
NtpServer parameter is ignored and Windows synchronizes the time with the nearest
domain controller (in accordance with the Active Directory sites).
You can manually change this parameter by using the Registry Editor (regedit.exe) or
with PowerShell:
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Parameters -
Name "Type" -Value "NT5DS"
Restart Windows Times Service:
In some cases, for the Windows client to synchronize the time with the AD domain
controller, you need to reset the Windows Time service configuration. To do this, open a
command prompt as an administrator and run the following commands:
The first command unregisters the w32time service and removes the settings
from the registry:
w32tm /unregister
The following command registers the service and restores the default time
settings:
w32tm /register
Update settings:
w32tm /resync
The screenshot below shows that Windows is now synchronizing with DC (Source).
Configuring NTP Client on Windows Using GPO
In most cases, time sync with a domain in Windows client doesn’t require any
administrator intervention. However, if you find that time synchronization on clients in
your domain is not working properly, you can centrally configure client NTP settings on
Windows devices using Group Policy.
1. Use the gpedit.msc console if you want to change group policy settings on a
single computer (this is the best solution if you need to solve synchronization
problems on a single computer or test new NTP client settings). If you are setting
up a GPO for multiple computers in a domain, use the Group Policy Management
Console (gpmc.msc);
2. Expand the following node in the left pane of the GPO editor Computer
Configuration > Administrative Templates > System > Windows Time
Service;
3. Open the Enable Windows NTP Client policy in the right pane and enable it;
4. Then select the Configure NTP Client option. Change its state to Enabled;
5. You need to set the following settings in the Options panel:
NTPServer: your domain name (preferred) or FQDN name of the
domain controller with the PDC Emulator role (you can find it with the
command: netdom.exe query fsmo)
Type: NT5DS
CrossSiteSyncFlags: 2
ResolvePeerBackoffMinutes: 15
ResolvePeerBackoffMaxTimes: 7
SpecialPollInterval: 64
EventLogFlags: 0
6. Restart your computer to apply the new GPO client time settings.