Page 1 of 1 1
Topic Options
#118856 - 2004-04-30 01:50 PM Regkey for TimeZone and Daylight Saving Time (DST)
zigi Offline
Fresh Scripter

Registered: 2003-09-04
Posts: 27
Hello,

I want to make a kixscript where I log the local TimeZone and the Daylight Saving Time from all PCs in our network.

can me somebody help, where to find this infos in the registry??

I would be very grateful for your help

Thanks,
Zigi

Top
#118857 - 2004-04-30 02:20 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
Top
#118858 - 2004-04-30 02:36 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
If you want to make an admin script, you can also use WMI to run against all the computers in your domain to get this information. Here is a script from KiXomatic...

Code:

Break On
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\" + $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_TimeZone",,48)
For each $objItem in $colItems
"Bias: " + $objItem.Bias ?
"Caption: " + $objItem.Caption ?
"DaylightBias: " + $objItem.DaylightBias ?
"DaylightDay: " + $objItem.DaylightDay ?
"DaylightDayOfWeek: " + $objItem.DaylightDayOfWeek ?
"DaylightHour: " + $objItem.DaylightHour ?
"DaylightMillisecond: " + $objItem.DaylightMillisecond ?
"DaylightMinute: " + $objItem.DaylightMinute ?
"DaylightMonth: " + $objItem.DaylightMonth ?
"DaylightName: " + $objItem.DaylightName ?
"DaylightSecond: " + $objItem.DaylightSecond ?
"DaylightYear: " + $objItem.DaylightYear ?
"Description: " + $objItem.Description ?
"SettingID: " + $objItem.SettingID ?
"StandardBias: " + $objItem.StandardBias ?
"StandardDay: " + $objItem.StandardDay ?
"StandardDayOfWeek: " + $objItem.StandardDayOfWeek ?
"StandardHour: " + $objItem.StandardHour ?
"StandardMillisecond: " + $objItem.StandardMillisecond ?
"StandardMinute: " + $objItem.StandardMinute ?
"StandardMonth: " + $objItem.StandardMonth ?
"StandardName: " + $objItem.StandardName ?
"StandardSecond: " + $objItem.StandardSecond ?
"StandardYear: " + $objItem.StandardYear ?
?
Next


Top
#118859 - 2004-04-30 03:23 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
zigi Offline
Fresh Scripter

Registered: 2003-09-04
Posts: 27
thank you Chris and Richard for your reply,

can I change the time settings with this regkeys, also?
Can me somebody tell, which registry keys i have to set, when I want to have Western European Time (GMT+1, "Region Amsterdam, Berlin, Bern, Rome, Stockholm,...") with activated Dayligt Saving Time?

Would be great to if someone could help me with that.

Top
#118860 - 2004-04-30 03:37 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Easiest thing is to set the values as you want them via the standard Windows utilities, then use readvalue / WMI to read the values to get them as KiXtart understands them.

You may find that it requires a logoff / logon for the changes to take effect if you change them this way.

Top
#118861 - 2004-05-02 10:28 AM Re: Regkey for TimeZone and Daylight Saving Time (DST)
zigi Offline
Fresh Scripter

Registered: 2003-09-04
Posts: 27
What standard tools do you mean?
Are there any, where I can change the daylight savings option and time zone on remote PCs?

Where can I find this tools?

Top
#118862 - 2004-05-02 03:23 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Here's an option that requires RemoteExec...

Code:

RemoteExec('RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT-05:00) Eastern Time (US & Canada)',$RemotePC)


Top
#118863 - 2004-05-03 08:47 PM Re: Regkey for TimeZone and Daylight Saving Time (DST)
zigi Offline
Fresh Scripter

Registered: 2003-09-04
Posts: 27
Thanks Chris,

I think this will help me.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.199 seconds in which 0.157 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org