@echo off
echo run as Administrator
net use \\192.168.0.20 "1" /user:"Administrator"
net time \\192.168.0.20 /set /yes
echo "finish"
echo run as Administrator
net use \\192.168.0.20 "1" /user:"Administrator"
net time \\192.168.0.20 /set /yes
echo "finish"
echo.& pause
/
以上保存为updatetime.bat
"1"为用户密码,“Administrator”为用户名
192.168.0.20为另一台电脑IP.
以管理员身份运行。
如不行,查看service中windows time是否开启。