Oct 18, 2011

Time service commands

Config a manual time source


w32tm /config /manualpeerlist:peers /syncfromflags:manual /update 
Replace "peers" with a list of time servers, delimited by space, enclosed with double quotes.
Ignore KBs that maually set registry entries
Config a manual time source as the top time source in forest
w32tm /config /manualpeerlist:peers /syncfromflags:manual /reliable:yes /update

Detect time difference
w32tm /stripchart /computer:TimeServerName /samples:n /dataonly
Set server to use domain hierarchy
w32tm /config /syncfromflags:domhier /update

After change time settings, it's normally required to restart time service

Note: If there is time difference, it takes time for the  system to bring the difference down depending on how much correct can be made in one step. The change is gradual.