如何在命令中从 ntp 时间服务器同步 Windows 时间 [英] how to sync windows time from a ntp time server in command
本文介绍了如何在命令中从 ntp 时间服务器同步 Windows 时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Windows 7.我可以手动从 ntp linux 服务器同步 win7 的时间.我怎么能在命令提示符下做到这一点.所以我可以在 Windows 启动时运行它.Windows 任务计划对我不起作用.时间应该是这样的:
I am working on windows 7. I can sync time of win7 from a ntp linux server manually. How can I do that in command prompt. So I can run it on windows startup. And windows task plan not work for me. The time should be like this:
Linux server --> windows 7.
有人知道吗?谢谢你.我可以阅读 msdn.
Any one knows that? Thank you. I can read msdn.
推荐答案
使用网络时间net time \\timesrv/set/yes
在您发表评论后,请在升级提示中尝试这个:
after your comment try this one in evelated prompt :
w32tm /config /update /manualpeerlist:yourtimerserver
这篇关于如何在命令中从 ntp 时间服务器同步 Windows 时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文