Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change time zone from command line in windows?

34 views
Skip to first unread message

Yuri Weinstein (HotMail)

unread,
Sep 23, 2003, 3:00:19 PM9/23/03
to
I need to find a similar way like in Unix:

%TZ=EST /blah/blah/runsrever

in Windows

Any help is appreciated.

YuriW


Torgeir Bakken (MVP)

unread,
Sep 23, 2003, 3:51:31 PM9/23/03
to
"Yuri Weinstein (HotMail)" wrote:

> I need to find a similar way like in Unix:
>
> %TZ=EST /blah/blah/runsrever
>
> in Windows

Hi

Time zone change from command line (Win2k/WinXP):

Control.exe TIMEDATE.CPL,,/Z (GMT-08:00) Pacific Time (US & Canada); Tijuana

alternatively:
RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT-08:00) Pacific
Time (US & Canada); Tijuana

where '(GMT-08:00) Pacific Time (US & Canada); Tijuana' is the timezone to be
set.

Input value behind /Z is from the Display value under the registry key
'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones'

You can use the Std value in those registry keys as well, this is equivalent
with "(GMT-08:00) Pacific Time (US & Canada); Tijuana":

Control.exe TIMEDATE.CPL,,/Z Pacific Standard Time


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Yuri Weinstein (HotMail)

unread,
Sep 23, 2003, 5:12:39 PM9/23/03
to
Thx

"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:3F70A443...@hydro.com...

0 new messages