Updating Time Zone via batch question

G

Greg Hines

Hi all,

I have a batch file that changes the time zone on XP PC's by updating the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
registy key.

The update of of registry works fine but the PC needs to be rebooted before
the changes can be seen in the Date/Time Applet (datetime.cpl). Even a
logoff/logon will not update the applet.

Does anyone know how I can make my changes to the registry appear in the
applet without a reboot?

BTW - Restarting the Windows Time Service does not do the trick.

TIA

Greg
 
3

3c273

I adapted the "refreshtxinfo.vbs" script here to suit my needs. I don''t
recall what changes I made or I would post mine.
Louis
 
J

John John (MVP)

You can change the Time Zone with a simple command, example:

control.exe timedate.cpl,,/Z Time_Zone_Name

control.exe timedate.cpl,,/Z Eastern Standard Time

John
 
G

Greg Hines

Yes I'm aware of control.exe, but some of my XP PC's are running ** XPE **
and control.exe is not available. Hence why I'm writing direct to the
registry using regedit /s filename.reg

Do you know of a way to update the datetime applet without doing a reboot.

TIA

Greg


John John (MVP) said:
You can change the Time Zone with a simple command, example:

control.exe timedate.cpl,,/Z Time_Zone_Name

control.exe timedate.cpl,,/Z Eastern Standard Time

John

Greg said:
Hi all,

I have a batch file that changes the time zone on XP PC's by updating the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
registy key.

The update of of registry works fine but the PC needs to be rebooted
before the changes can be seen in the Date/Time Applet (datetime.cpl).
Even a logoff/logon will not update the applet.

Does anyone know how I can make my changes to the registry appear in the
applet without a reboot?

BTW - Restarting the Windows Time Service does not do the trick.

TIA

Greg
 
J

John John (MVP)

No, maybe someone else has other ideas.

John

Greg said:
Yes I'm aware of control.exe, but some of my XP PC's are running ** XPE **
and control.exe is not available. Hence why I'm writing direct to the
registry using regedit /s filename.reg

Do you know of a way to update the datetime applet without doing a reboot.

TIA

Greg


You can change the Time Zone with a simple command, example:

control.exe timedate.cpl,,/Z Time_Zone_Name

control.exe timedate.cpl,,/Z Eastern Standard Time

John

Greg Hines wrote:

Hi all,

I have a batch file that changes the time zone on XP PC's by updating the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
registy key.

The update of of registry works fine but the PC needs to be rebooted
before the changes can be seen in the Date/Time Applet (datetime.cpl).
Even a logoff/logon will not update the applet.

Does anyone know how I can make my changes to the registry appear in the
applet without a reboot?

BTW - Restarting the Windows Time Service does not do the trick.

TIA

Greg
 

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

Top