在powershell中以管理员身份运行以下命令即可

w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
Stop-Service w32time
Start-Service w32time

 

查看当前时间同步状态

w32tm /query /status

 

设置WindowServer2012 时间同步NTP-LMLPHP

 

 

调试信息

开启调试

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.

 

参考

Configuring NTP on Windows Server 2012

Configuring NTP on Windows 2008 R2

05-11 04:32