Server / desktop time off

If you get a call about server or desktop time being off there are a few ways to fix it. Either manually reset the time or run a script.

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 /config /update

W32tm /resync

 

script explanation:

 

Net Stop W32Time  stop the time service 

W32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org set the time service to look at the National Time Pool ( external source ) 

W32tm /config /reliable:yes  set time as reliable 

Net Start W32Time   start the time service 

W32tm /config /update   poll the server for the current time 

W32tm /resync  to be run on desktops instead of rebooting to force it to look at the server 

Leave a Reply