新建一个bat批处理文件,
@echo off
:start
sc config w32time start= auto
net stop w32time
net start w32time
echo 同步时间中 . . .
echo f| net time \\127.0.0.1 /set /y
echo 同步时间成功
choice /t 5 /d y /n >nul
goto start
以管理员权限运行