wmi experts

Thought this was working, but second glance shows 'no'...
I'm running this on a server in EST.  The .CurrentTimeZone should reveal -300, but shows -240 instead.

set oQuery=oWMI.ExecQuery("select * from Win32_ComputerSystem")
wscript.echo .CurrentTimeZone

Any idea(s) why?
LVL 67
sirbountyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

sr75Commented:
Why do you need the TimeZone??

Try using Win32_TimeZone anyways and see if you get a change.

<  script >

Option Explicit

Dim objWMI
Dim colClass
Dim objClass
Dim strComputer

strComputer = "."
Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colClass = objWMI.ExecQuery("Select * from Win32_TimeZone",,48)

On Error Resume Next

For Each objClass in colClass
      WScript.Echo "Bias: " & objClass.Bias
Next

Set objWMI = Nothing
Set colClass = Nothing
Set objClass = Nothing
sr75Commented:
using objClass.Description will print out the selection for the timezone as well (i.e. eastern, pacific, etc.)
cookreCommented:
Sounds like the server allows for daylight time, before which ET is GMT-5, after which it's GMT-4.

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
sirbountyAuthor Commented:
Completely forgot about that...<g>...thanx.
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
Programming

From novice to tech pro — start learning today.