首页 > 代码库 > windows 服务器同步互联网时间

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 服务器同步互联网时间