Configure Windows time with high (sub seconds) precision

前端 未结 5 2170
执念已碎
执念已碎 2021-01-07 05:51

http://time.is/ is constantly reporting my system clock as several seconds off (usually ahead) even if I freshly force synchronization of windows clock with some of the inte

5条回答
  •  粉色の甜心
    2021-01-07 06:04

    If your machine is part of an Active Directory env, then its clock is automatically sync'd to the clock of your AD controller (which is likely sync'd to some other time source). So you should look to fix the time problem on the AD controller.

    If you scroll 2/3 of the way down on this page: http://www.cites.illinois.edu/network/activedirectory.html it will tell you if your machine is in an AD domain.

    If your machine is not in an AD, you can run

    w32tm /stripchart /computer:time.windows.com
    

    to tell how far out of sync your machine is with a time source (substitute time.windows.com with your time source).

    If you want to resync to the time source immediately, run:

    w32tm /config /syncfromflags:manual /manualpeerlist:time.windows.com    
    w32tm /config /update 
    w32tm /resync
    

    and ofcourse you can re-run "w32tm /stripchart /computer:time.windows.com" to see if it really worked.

提交回复
热议问题