rem put this batch file in scheduled tasks to run at 7:00am everyday
rem This section is for time off by minutes or hours
rem =======================================
net stop w32time

w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
w32tm /config /reliable:yes

net start w32time
w32tm /resync
rem =======================================






rem If your time is of by more than hours or minutes like more than a day or years, then this is more extreme
rem =======================================
net stop w32time 
w32tm /unregister 
w32tm /register 
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" /v "SpecialPollInterval" /t REG_DWORD /d "86400" /f 
rem need to rem the SC command on the next line for Vista
rem sc triggerinfo w32time start/networkon stop/networkoff 
net start w32time 
w32tm /config /manualpeerlist:"0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1 3.pool.ntp.org,0x1" /syncfromflags:manual /update 
w32tm /resync /force 
rem =======================================

