win10上使用指定的ntp地址同步时间

内网有ntp的需求,搭一个ntp服务。给win10 增加一个ntp服务器地址

注意

我电脑为win10专业版,如发现有不一样,请去网上搜索你的版本对应的操作

大致情况只用一句命令就可以了

注意,需要管理员权限

将以下命令中的SPACE_LIMITED_NTP_SERVERS改成ntp服务器地址就可以了

1
w32tm /config /update /manualpeerlist:SPACE_LIMITED_NTP_SERVERS /syncfromflags:manual /reliable:yes

参考

微软官网的,不深究可以用不看

https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings

Configure NTP on Windows Server

https://docs.vmware.com/en/VMware-Horizon-DaaS/services/horizondaas.install900/GUID-AEC90E5F-C5B6-447F-B03F-C1060C405E1F.html

0%