win10电脑休眠后唤醒经常还处于在休眠前的时间,如果不手动同步时间甚至不会更新,真的恶心!于是写个小脚本用保存成bat文件,并且以管理员权限运行即可。加入任务计划便可实现自动同步时间。
@echo off
::更新到阿里云时间
net time \\server ntp1.aliyun.com
net stop w32time
net start w32time
w32tm /resync
exit
计划任务:
win10电脑休眠后唤醒经常还处于在休眠前的时间,如果不手动同步时间甚至不会更新,真的恶心!于是写个小脚本用保存成bat文件,并且以管理员权限运行即可。加入任务计划便可实现自动同步时间。
@echo off
::更新到阿里云时间
net time \\server ntp1.aliyun.com
net stop w32time
net start w32time
w32tm /resync
exit
计划任务: