我在Windows7上工作。我可以手动从ntp linux服务器同步win7的时间。如何在命令提示符中执行此操作。这样我就可以在windows启动时运行它了。windows任务计划对我不起作用。时间应该是这样的:
Linux server --> windows 7.
有人知道吗?谢谢。我能读msdn。
发布于 2014-04-04 20:12:00
使用net time net time \\timesrv /set /yes
在你的评论之后,试试下面的提示符:
w32tm /config /update /manualpeerlist:yourtimerserver
发布于 2016-02-25 19:29:48
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org"
net start w32time
w32tm /config /update
w32tm /resync /rediscover
.BAT示例文件:https://gist.github.com/thedom85/dbeb58627adfb3d5c3af
我也推荐这个程序:http://www.timesynctool.com/
https://stackoverflow.com/questions/22862236
复制相似问题