How to sync Time with NTP server on windows

你说的曾经没有我的故事 提交于 2019-12-24 16:41:06

问题


I'm trying to find a way to sync my machine (win 7/8.1/TH) time with an NTP server every x time. i.e sync clock every 1 hour.

I understood there's a way to do it by configuring something in the registry.

Another good solution can be a way to automatically run a .bat file every x time, which will contain

w32tm /config /update /manualpeerlist:" + NTPServerAddress

But I prefer a reg solution if possible. THX!


回答1:


found the solution here link

Basically you just need to go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\ NtpClient\SpecialPollInterval and change the value to whatever you want the interval to be.

its important to start the w32Time service before (from cmd) with:

net start W32Time



来源:https://stackoverflow.com/questions/32179446/how-to-sync-time-with-ntp-server-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!