参考https://blog.csdn.net/davil_dev/article/details/6828682
文章的基础上进行简单的修改:
在time.windows.com可用,即立即同步可用的情况下使用
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
net stop w32time
net start w32time
w32tm /resync
pause