@echo off
set "server=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
net start w32time
@ping -n 3 localhost> nul
net stop  w32time && w32tm /config /syncfromflags:manual /manualpeerlist:"%server%" && net start w32time && w32tm /config /update && w32tm /resync /rediscover
@ping -n 3 localhost> nul
w32tm /query /configuration
w32tm /query /status
@ping -n 5 localhost> nul
exit /b
