在powershell中以管理员身份运行以下命令即可
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
Stop-Service w32time
Start-Service w32time
查看当前时间同步状态
w32tm /query /status
调试信息
开启调试
w32tm /debug /enable /file:C:\Temp\w32tmdebug.log /size:10485760 /entries:0-300
关闭调试
w32tm /debug /disable
强制重新同步
w32tm /resync
Sending resync command to local computer
The command completed successfully.