windows 服务器同步互联网时间

Posted Mr黄瑞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windows 服务器同步互联网时间相关的知识,希望对你有一定的参考价值。

@echo off
::netsh ipsec static set policy name=7road assign=n
net time /setsntp:pool.ntp.org
net stop w32time
net start w32time
w32tm /resync
w32tm /resync
w32tm /resync
::netsh ipsec static set policy name=7road assign=y
exit

 

以上是关于windows 服务器同步互联网时间的主要内容,如果未能解决你的问题,请参考以下文章