Updating Time Zone via batch question

  • Thread starter Thread starter Greg Hines
  • Start date Start date
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
 
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
 
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
 
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
 
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
 
Back
Top