Powershell Commands to Set Time to National Time Server

by matt392 in Circuits > Software

3 Views, 0 Favorites, 0 Comments

Powershell Commands to Set Time to National Time Server

timeserver.png

Powershell commands to set time to national time server.

Run from Powershell as administrator:

w32tm /config /syncfromflags:manual "/manualpeerlist:0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" /reliable:yes

w32tm /config /update

net stop w32time

net start w32time

w32tm /resync /force

w32tm /query /source

Powershell Commands to Set Time to National Time Server

Powershell commands to set time to national time server.

Run from Powershell as administrator:

w32tm /config /syncfromflags:manual "/manualpeerlist:0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" /reliable:yes

w32tm /config /update

net stop w32time

net start w32time

w32tm /resync /force

w32tm /query /source