确保w32tm服务启动
net start w32time
net stop w32time (停止)
通过微软公司的时间服务器(位于time.windows.com)检查5个时间样本,验证时间服务器的正确程度。 a+表示超前,a—表示落后
w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly
与internet时间同步
w32tm /config "/manualpeerlist:time.nist.gov time.windows.com" /syncfromflags:manual /reliable:yes /update
此处使用了两个时间服务器同步,也可多增加几个。
参数syncfromflags的意思是指将于manualpeerlist组中的其中一个时间服务器同步
王淑江老师的视频教程,供大家参考:http://edu.51cto.com/index.php?do=lesson&id=15725
转载于:https://blog.51cto.com/seawind/1852798