Command Line Time Zone Change

I work for a restuarant chain with XP pro as servers and Windows 98 clients for cash registers in each location. Most of these are remote and I need a way to change the time zone from Indiana East to Eastern Standard time, without visiting each computer. I have found utilities for nt based machines but not 98. Also I can connect remotely to the servers with PCanywhere. Thanks in advance.
mr_kevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dbruntonCommented:
Well, see here

http://support.microsoft.com/kb/221542/

This is the location of the Time Zone information in the registry that's being used.  All you have to do is change it. That's where the problem start.

Here

http://support.microsoft.com/?kbid=317211

Shows you how to edit the Time Zone information for each country and will show you where in the registry it is..  The trick is to get the information for your region in this area into the location of the Time Zone information that's being used.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BillDLCommented:
From what I can determine, these settings are stored in the registry.
The following two examples shows the differences when I changed from GMT to US Eastern Standard Time using the traditional Tim/Date Control Panel Applet and just accessed the "Time Zone" Drop-Down list:

BEFORE
------

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation]
"ActiveTimeBias"=hex:00,00,00,00
"StandardName"="GMT Standard Time"
"DaylightName"="GMT Daylight Time"
"Bias"=hex:00,00,00,00
"StandardBias"=hex:00,00,00,00
"DaylightBias"=hex:c4,ff,ff,ff
"StandardStart"=hex:00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00
"DaylightStart"=hex:00,00,03,00,00,00,05,00,01,00,00,00,00,00,00,00
"DaylightFlag"=hex:01,00,00,00
"ActiveTime"=hex:97,85,ff,ff

AFTER
-----

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation]
"ActiveTimeBias"=hex:2c,01,00,00
"StandardName"="US Eastern Standard Time"
"DaylightName"="US Eastern Daylight Time"
"Bias"=hex:2c,01,00,00
"StandardBias"=hex:00,00,00,00
"DaylightBias"=hex:c4,ff,ff,ff
"StandardStart"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"DaylightStart"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"DaylightFlag"=hex:01,00,00,00
"ActiveTime"=hex:97,85,ff,ff

Note: the following values were unaffected, but have been included for completeness:

"StandardBias"=
"DaylightBias"=
"DaylightFlag"=
"ActiveTime"=

The results do not require a restart, and I'm sure that they could be easily applied by running a .REG Script or using Remote Registry Server as an administrator.

What this DOESN'T DO is actually change the system time.  I don't know of a way to do this other than from the Time?Date Control panel Applet or using DOS commands:

Echo 15.30.00 | Time
Echo 21/03/2006 | Date

or

TIME 15.30.00
DATE 21/03/2006

There is probably a Visual Basic or Windows Script that could change the Time Zone AND the system time elegantly and in one pass, but I'm not a programmer.

As far as tools to change the time zone, I don't know of any.  The nearest Win98 gets is a tool to create your own custom time zones CD:\tools\reskit\config\tzedit.exe
0
dbruntonCommented:
This link shows you how to activate the various applets in the Control Panel.

You could call up the Date/Time applet and change the items that way.

http://www.robvanderwoude.com/index.html
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

BillDLCommented:
Hmmm, just nipped in ahead of mine there dbrunton :-)

You might be able to add a command to the one of the "RunOnce" registry keys eg:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
causing regedit to run a batch file to change the Time & Date and then call regedit to import a .REG file the first time the system is rebooted:

http://support.microsoft.com/?kbid=137367
0
BillDLCommented:
Rob van der Woude's pages are annoying the way they load in a frame and you can't get the url to return to the exact page.  I think this is the RunDLL command you were referring to dbrunton:

Date/Time Properties:
    rundll32.exe shell32.dll,Control_RunDLL timedate.cpl

Pick a Time Zone Dialog (Doesn't work for me, just shows the same dialog):
    rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,/f
0
dbruntonCommented:
Yep

You would then need to pass keystrokes to the GUI to get it to do the job.  I remember using a util from one of the PC mags to do this, it was a 16 bit app that I can't remember the name of.

Trouble is you have to install an app, hmm these are 98 machines connected to servers so they should be able to access an app installed on a server.

There's Winbatch and others that could do the keystroke task.
0
BillDLCommented:
mr kev
Can you access the registries of each of the terminals on your network remotely?

I can't recall, but I think the remote Win98 terminals have to be running the remote registry service (CD:\tools\reskit\netadmin\remotreg\regserv.exe) to enable registry access from a remote network source.
As you may conclude, networking is not my strong point, so I would welcome contradiction with this one :-)

There are other 3rd-party utilities that allow you to take over the remote computer as though it was your own, but they also normally have to have a client service running on the remote computers to work.

0
BillDLCommented:
Thank you LeeTutor and GranMod
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.