#118856 - 2004-04-30 01:50 PM
Regkey for TimeZone and Daylight Saving Time (DST)
|
zigi
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
|
|
|
|
#118858 - 2004-04-30 02:36 PM
Re: Regkey for TimeZone and Daylight Saving Time (DST)
|
Chris S.
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
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
|
|
|
|
#118861 - 2004-05-02 10:28 AM
Re: Regkey for TimeZone and Daylight Saving Time (DST)
|
zigi
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.
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
Fresh Scripter
Registered: 2003-09-04
Posts: 27
|
Thanks Chris,
I think this will help me.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|