The Trouble with Time Zones
If you purchase a new Windows 11 laptop in New York and travel to London for a business trip, the computer will usually automatically update its clock to local time using Wi-Fi geolocation. However, this automatic system frequently fails if you are connected to a corporate VPN that artificially routes your internet traffic through a different country.
For standard users, clicking the clock in the bottom right corner and manually changing the time zone is easy. But for IT administrators deploying hundreds of virtual machines across a global network, manually clicking through graphical menus is impossible. You need a way to force a computer to adopt a specific time zone instantly via a deployment script.
To view, change, and manage Windows time zones entirely from the command line, you must use the tzutil (Time Zone Utility) command.
Step 1: Open the Command Prompt
Because changing the system clock affects core OS logging and file timestamps, you should run this tool as an administrator.
- Press the Windows Key, type
cmd. - Right-click on Command Prompt and select Run as administrator.
Step 2: Checking the Current Time Zone
To instantly verify exactly what time zone the computer is currently operating in, use the /g (get) flag.
tzutil /g
The terminal will output the official internal name of the active time zone (e.g., Eastern Standard Time). This is incredibly useful for remote troubleshooting when an employee complains that their calendar appointments are saving at the wrong time.
Step 3: Listing All Available Time Zones
If you need to change the time zone to Tokyo, you cannot just guess the name and type “Tokyo Time.” You must use the exact, official naming convention required by the Windows operating system.
To see a massive list of every single time zone supported by Windows, use the /l (list) flag.
tzutil /l
Because the list is enormously long, it will scroll off your screen. To easily find the exact spelling for a specific location (like Japan), you should pipe the output into the find command.
tzutil /l | find /i "japan"
The terminal will filter the massive list and output exactly what you need: Tokyo Standard Time.
Step 4: Changing the Time Zone
Now that you know the exact official name of the desired time zone, you can force the computer to adopt it using the /s (set) flag.
Because the time zone name contains spaces, you must enclose it in quotation marks.
tzutil /s "Tokyo Standard Time"
The command executes silently. If you look at the clock in the bottom right corner of your Windows taskbar, you will see it has instantly jumped to match the new local time in Japan.
Step 5: Disabling Daylight Saving Time
If you are managing a database server that requires absolute chronological consistency (e.g., logging exact transaction times for a financial institution), Daylight Saving Time (DST) is a nightmare. When the clock artificially jumps backward by one hour in the fall, a database might accidentally log two different transactions as happening at the exact same millisecond.
You can force a Windows machine to adopt a time zone but mathematically ignore all Daylight Saving Time shifts by appending the _dstoff suffix to the time zone name.
tzutil /s "Eastern Standard Time_dstoff"
The computer will now permanently operate on standard winter time all year round, ensuring your database logs remain flawlessly sequential.