Windows/Time

From Omnia
Jump to navigation Jump to search

tzutil

To set the time zone to "Pacific Standard Time", the command would be:

tzutil /s "Pacific Standard Time"
tzutil /s "Mountain Standard Time"

To see a list of available time zones, use:

tzutil /l

Get current:

tzutil /g

ntp

To change NTP servers and sync:

net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"ntp.example.com"
net start w32time
w32tm /config /update
w32tm /resync /rediscover
w32tm /query /status
w32tm /query /peers
w32tm /query /source
w32tm /monitor /computers:ntp.example.com

keywords