Tuesday 19 December 2017

How to change Timezone in Windows from Command Line

Guys, today let us learn how to change and/or update the Timezone on Windows machines without using the GUI i.e from the command line. On most flavors of Windows, the timezone utility (tzutil.exe) lies at C:\Windows\System32 location. 

Note : Updating timezone requires a user to have administrator rights. Make sure you have it.

So now, open the command line as administrator. Open the tzutil.exe from C:\Windows\System32 location. Let us look into a few illustrations on its usage.
  • To list current time zone :
C:\Windows\System32>tzutil.exe /g
Eastern Standard Time

  • To display the list of all available time zones :
C:\Windows\System32>tzutil.exe /l

(UTC+08:00) Irkutsk
North Asia East Standard Time

(UTC+08:00) Kuala Lumpur, Singapore
Singapore Standard Time

(UTC+08:00) Perth
W. Australia Standard Time

(UTC+08:00) Taipei
Taipei Standard Time

(UTC+08:00) Ulaanbaatar
Ulaanbaatar Standard Time

(UTC+08:30) Pyongyang
North Korea Standard Time

(UTC+08:45) Eucla
Aus Central W. Standard Time

(UTC+09:00) Chita
Transbaikal Standard Time

(UTC+09:00) Osaka, Sapporo, Tokyo
Tokyo Standard Time

(UTC+09:00) Seoul
Korea Standard Time

  • To update/set the time zone to a different time zone
C:\Windows\System32>tzutil.exe /s "Cen. Australia Standard Time"

So as you see there are basically only 3 switches to use /g /l and /s

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker