Windows/Time: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
Line 10: Line 10:
Get current:
Get current:
  tzutil /g
  tzutil /g
Example from list:
<pre>
(UTC-08:00) Pacific Time (US & Canada)
Pacific Standard Time
(UTC-07:00) Arizona
US Mountain Standard Time
(UTC-07:00) Mountain Time (US & Canada)
Mountain Standard Time
(UTC-06:00) Central Time (US & Canada)
Central Standard Time
(UTC-05:00) Eastern Time (US & Canada)
Eastern Standard Time
</pre>


== ntp ==
== ntp ==

Latest revision as of 19:16, 15 July 2025

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

Example from list:

(UTC-08:00) Pacific Time (US & Canada)
Pacific Standard Time

(UTC-07:00) Arizona
US Mountain Standard Time

(UTC-07:00) Mountain Time (US & Canada)
Mountain Standard Time

(UTC-06:00) Central Time (US & Canada)
Central Standard Time

(UTC-05:00) Eastern Time (US & Canada)
Eastern Standard Time

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