2016年1月23日星期六

force update windows time with batch file

Create the batch files in startup as below:

@ping time.windows.com -n 1 -w 36000 > nul
w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /reliable:yes /update
W32tm /resync /force


-------------------------------------
It will try to check time.windows.com(or ntp you want) and your network is up and running then force to update the windows time with time.windows.com.

沒有留言: