Re: change time zone

From: Sameh Ahmed (essoplus_at_hotmail.com)
Date: 02/23/04


Date: Tue, 24 Feb 2004 00:21:46 +0200

that was quick answering the 2 questions : )
thanks

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:403A7702.F7156813@hydro.com...
> Sameh Ahmed wrote:
>
> > hello there
> > is there a way to change the time zone through WMI?
> > Win32_TimeZone does not have any methods.
>
> Hi
>
> Time zone change using the command line utility Control.exe (Win2k/WinXP):
>
>
> Control.exe TIMEDATE.CPL,,/Z (GMT-08:00) Pacific Time (US & Canada);
Tijuana
>
> alternatively:
> RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT-08:00)
Pacific
> Time (US & Canada); Tijuana
>
> where '(GMT-08:00) Pacific Time (US & Canada); Tijuana' is the timezone to
be
> set.
>
> Input value behind /Z is from the Display value under the registry key
> 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones'
>
> You can use the Std value in those registry keys as well, this is
equivalent
> with "(GMT-08:00) Pacific Time (US & Canada); Tijuana":
>
> Control.exe TIMEDATE.CPL,,/Z Pacific Standard Time
>
>
> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>



Relevant Pages

  • Re: Change the Time Zone on Windows 2003
    ... Time zone change using the command line utility Control.exe ... Input value behind /Z is from the Display value under the registry key ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.wsh)
  • Re: Change the Time Zone on Windows 2003
    ... > Time zone change using the command line utility Control.exe ... > Input value behind /Z is from the Display value under the registry key ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.wsh)
  • Re: Time Zone
    ... Time zone change using the command line utility Control.exe ... Input value behind /Z is from the Display value under the registry key ... ensure that the Daylight Savings option is enabled. ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.vbscript)
  • Re: WMI Date works on XP but not 2000 Server
    ... Windows dates to those of WMI as the class you are attempting to ... Microsoft MVP (Windows Security) ... convert times to GMT with a UTC offset of zero. ... occurring in the current year, time, day, and/or time zone. ...
    (microsoft.public.windows.server.security)
  • Re: EIF - The preffered event sink in a distributed environment
    ... |>> problems installing EIF - this is because the setup uses WMI at one ... this is the WMI class that we use to read a registry key) ... |>> Mike ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.vsnet.enterprise.tools)

Loading