windows配置多个NTP服务器地址

版权声明:AshQ https://blog.csdn.net/qq_41565459/article/details/83788746

背景:有客户的windows配置了time.nist.gov作为时间同步服务器地址,可能因为这个服务器在美国,有时候不能成功从服务器拿到最新时间。所以给客户配置多个NTP地址,一个不行自动去问另一个。

1. 打开cmd窗口(需以管理员身份运行)

2. 重启时间同步服务

net stop w32time & net start w32time

3. 配置NTP地址池(可以是域名和IP)

w32tm /config /update /manualpeerlist:"pool.ntp.org time.windows.com time.apple.com time.google.com"

4. 应用上面的配置,并查看当前状态

w32tm /resync
w32tm /query /peers

猜你喜欢

转载自blog.csdn.net/qq_41565459/article/details/83788746