How to determine OS Platform with WMI?
Posted
by cary.wagner
on Stack Overflow
See other posts from Stack Overflow
or by cary.wagner
Published on 2009-09-11T21:38:00Z
Indexed on
2010/05/04
21:28 UTC
Read the original article
Hit count: 346
I am trying to figure out if there is a location in WMI that will return the OS Architecture (i.e. 32-bit or 64-bit) that will work across "all" versions of Windows. I thought I had figured it out looking at my Win2k8 system when I found the following:
Win32_OperatingSystem / OSArchitecture
I was wrong. It doesn't appear that this field exists on Win2k3 systems. Argh!
So, is anyone aware of another field in WMI that "is" the same across server versions? If not, what about a registry key that is the same? I am using a tool that only allows me to configure simple field queries, so I cannot use a complex script to perform.
Any help would be greatly appreciated! Cheers...
Cary
© Stack Overflow or respective owner