NTP tips

Checking your time against a reference NTP server

w32tm /stripchart /computer:pool.ntp.org /samples:5 /dataonly

Checking time across multiple systems using ‘psexec’ (from Sysinternals.com)

psexec \\computer1,computer2,computer2 w32tm /stripchart /computer:pool.ntp.org /samples:5 /dataonly

Setting the time services to use NTP and server NTP requests (for all AD servers).

Step 1:

 W32tm /config /syncfromflags:manual /manualpeerlist:pool.ntp.org /reliable:yes /update
W32tm /resync

Step 2:

 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config]
“AnnounceFlags”=dword:00000005
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
“Type”=”NTP”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]
“Enabled”=dword:00000001

If a guest VM, it is best NOT to sync with the Hyper-V host server …

reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider /v Enabled /t reg_dword /d 0

Step 3:

Net stop w32time
Net start w32time

Checking time accross all DCs:
w32tm /monitor

Checking time configuration on a DC:

w32tm /query /configuration

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *