码迷,mamicode.com
首页 > Windows程序 > 详细

windows 服务器同步互联网时间

时间:2017-02-20 13:42:33      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:class   联网   log   time   blog   netsh   echo   start   assign   

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

标签:class   联网   log   time   blog   netsh   echo   start   assign   

原文地址:http://www.cnblogs.com/Mrhuangrui/p/6418844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!