Sync Windows Time on Logon

The command to synchronize Windows time can be put into a batch script and configured at Log On for users.  This will update the date/time of the computer system.

w32tm /resync /nowait

If you are not in a Windows Domain, the default poll interval is 1 week (7 days;  604,800 seconds).  This can be changed in the Registry.
When the SpecialInterval 0x1 flag is enabled, W32Time uses this poll interval instead of a poll interval determine 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.

Windows Registry Editor Version 5.00
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient
"SpecialPollInterval"=dword:00015180
"SpecialInterval"=dword:00000001

SpecialPollInterval is the interval time in seconds in hexidecimal format. In this case, 86,400 seconds = 24 hours (1 day). 15180 is the hex value 86400.

Published by

Rich

Just another IT guy.

Leave a Reply

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