如何在Windows上与NTP服务器同步时间 [英] How to sync Time with NTP server on windows
问题描述
我试图找到一种方法,每隔 x 次使用NTP服务器同步我的机器(win 7 / 8.1 / TH)时间。
即每1小时同步一次。
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.
另一个很好的解决方案是每隔 x 时间自动运行 .bat 文件,这将包含
Another good solution can be a way to automatically run a .bat file every x time, which will contain
w32tm / config / update / manualpeerlist:+ NTPServerAddress
w32tm /config /update /manualpeerlist:" + NTPServerAddress
THX!
But I prefer a reg solution if possible. THX!
推荐答案
找到了解决方案链接
基本上你只需要到 HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet\Services\W32Time\TimeProviders \
NtpClient\SpecialPollInterval
重要的是在之前(从cmd)启动w32Time服务:
its important to start the w32Time service before (from cmd) with:
net start W32Time
net start W32Time
这篇关于如何在Windows上与NTP服务器同步时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!