Windows时间同步脚本命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenbetter1996/article/details/82493732

双系统经常出现时间不同步问题

使用的是Windows10系统

除了麻烦的可视化操作方法,也可以用命令同步

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync
pause

写出一个批处理脚本即可,pause只是为了看看过程,测试管理员权限可以不需要。

参考微软问题:https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings-winpc/how-to-force-windows-10-time-to-synch-with-a-time/20f3b546-af38-42fb-a2d0-d4df13cc8f43

猜你喜欢

转载自blog.csdn.net/chenbetter1996/article/details/82493732