我正在使用Windows 7.我可以手动同步ntp linux服务器的win7时间。我怎么能在命令提示符下做到这一点。所以我可以在Windows启动时运行它。而Windows的任务计划不适合我。时间应该是这样的:如何从命令中的ntp时间服务器同步窗口时间
Linux server --> windows 7.
任何人都知道吗?谢谢。我可以阅读msdn。
我正在使用Windows 7.我可以手动同步ntp linux服务器的win7时间。我怎么能在命令提示符下做到这一点。所以我可以在Windows启动时运行它。而Windows的任务计划不适合我。时间应该是这样的:如何从命令中的ntp时间服务器同步窗口时间
Linux server --> windows 7.
任何人都知道吗?谢谢。我可以阅读msdn。
net time \\timesrv /set /yes
使用后的净时间您的评论试试这个在evelated提示:
w32tm /config /update /manualpeerlist:yourtimerserver
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/
感谢'timesynctool'参考,正是我需要的。 – kmonsoor
如果你只需要resync
窗口的时候,打开一个提升的命令提示符和类型:
w32tm /resync
C:\WINDOWS\system32>w32tm /resync
Sending resync command to local computer
The command completed successfully.
@NickDong回答更新 –
它运行成功,没有错误。但时间不是变化。当我运行'时间/吨'。它让我发疯。 @Kayasax –