Change Time Zones

B

Ben Mills

is there a way to change Time Zones from an MSI Script?
Or any other scriping method?
 
T

Torgeir Bakken (MVP)

Ben said:
is there a way to change Time Zones from an MSI Script?
Or any other scriping method?

Time zone change using the command line utility Control.exe (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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Changing time zones 2
Time Zone Change 7
How can I change the type of data 2
time zone shift 3
Time Zone tool 6
Different time zones 3
Event calendar problem when changing time zones 1
Change outlook Time Zone 5

Top