@echo off
:: Windows Time Service 
net stop w32time

w32tm /config /manualpeerlist:"time.windows.com,0x1 pool.ntp.org,0x1 time.nist.gov,0x1" /syncfromflags:manual /update

:: Windows Time Service 
net start w32time

w32tm /resync

echo Date and Time has been synchronized successfully!
pause
