Re: Time zone information?
- From: "Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 May 2008 17:07:54 -0500
Well, I just think of memory in 256MB blocks, so it's either 512MB or 1GB.
That's how I'd like it to read out.
When I run Win32_PhysicalMemory I see 3 instances, 2 are RAM and the third
is the BIOS ROM, I believe. How do you separate them when summing them? I
haven't seen an obvious indicator yet. Memory type would be an obvious one
but it simply returns "Unknown" for my RAM.
Thanks,
Linn
"Alex K. Angelopoulos" <aka(at)mvps.org> wrote in message
news:edad6BsuIHA.6096@xxxxxxxxxxxxxxxxxxxxxxx
You want to use Win32_PhysicalMemory, and retrieve the Capacity for each
instances. This returns the size in bytes for each physical memory module
installed, so you need to sum the values and then divide by 1024^2 to get
the total installed memory in megabytes. I don't usually trust the System
Information applet, simply because the results it returns are often bogus.
Like that extra 0.50 MB it's showing. :)
"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:#ol8MKruIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
There sure seem to be a lot of them and many of them seem very similar if
not exact.
So another question then, is there a class that reports the amount of
memory? I've been looking at about 8 or 10 different classes that
adderss the memory but none of them tell me how much is present in
readable terms. You know, when you run the System Information program, it
shows Total Physical Memory as 1,024.50 MB. But I can't get this result
from any of the classes I've tested. Any thoughts on this one?
Thanks,
Linn
"Alex K. Angelopoulos" <aka(at)mvps.org> wrote in message
news:e0yhwx2tIHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
Possibly because there are over a thousand WMI classes to look through.
I keep finding things I didn't know about that have been there for
_years_. ; )
"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:#YQZEhctIHA.524@xxxxxxxxxxxxxxxxxxxxxxx
Yeah, that's it. I can't believe I didn't see those myself, I found a
page on Microsoft's MSDN site that lists all the Win32 classes. I just
didn't see Win32_TimeZone for some reason.
Thanks Shay and Dave for the help,
Linn
"Shay Levi" <no@xxxxxxxx> wrote in message
news:89228ed22b7d28ca83d39b95becc@xxxxxxxxxxxxxxxxxxxxx
Try this classes:
Win32_TimeZone
Win32_SystemTimeZone
---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Hi,
How can I get the time zone of a computer in a script? I found the
wim32_computersystem class and it has a CurrentTimeZone function but
it returns the amount of time the computer is offset from UTC. Isn't
there a way to get "Eastern Time", "Central Standard Time", Mountain
or Pacific, like that?
Thanks in advance,
Linn
.
- Follow-Ups:
- Re: Time zone information?
- From: Alex K. Angelopoulos
- Re: Time zone information?
- References:
- Time zone information?
- From: Linn Kubler
- Re: Time zone information?
- From: Shay Levi
- Re: Time zone information?
- From: Linn Kubler
- Re: Time zone information?
- From: Alex K. Angelopoulos
- Re: Time zone information?
- From: Linn Kubler
- Re: Time zone information?
- From: Alex K. Angelopoulos
- Time zone information?
- Prev by Date: Re: Time zone information?
- Next by Date: Re: Script to Search and Delete Files from Remote Machines
- Previous by thread: Re: Time zone information?
- Next by thread: Re: Time zone information?
- Index(es):
Relevant Pages
|
|