(imported topic written by ltd200991)
is it possible to query whether or not a cpu is 64 bit or 32 bit?
(imported topic written by ltd200991)
is it possible to query whether or not a cpu is 64 bit or 32 bit?
(imported comment written by Lee Wei)
According to this WMI reference on the Processor class and Architecture attribute, the following should work.
http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx
q: (if (it=9) then (“x64”) else (if (it=0) then (“x86”) else (“Others”))) of integer value of selects “architecture from win32_processor” of wmi
A: x64
(imported comment written by SystemAdmin)
Lee
I’m trying this as well. I am having speradic results. I have a number of Win servers taht return an error (singular expression refers to an non-unique object) I thought maybe WMI is acting up, but that is working for another property I have built.
Ideas?
(imported comment written by SystemAdmin)
Most likely your servers have mutliple processors, so the WMI is returning mutiple results (which we didn’t anticipate). You can probably fix this by simply pluralizing the “interger values” inspector:
q: (
if (it=9) then (
"x64")
else (
if (it=0) then (
"x86")
else (
"Others"))) of integer values of selects
"architecture from win32_processor" of wmi A: x64 T: 15.142 ms I: plural string
which should give you a list of results for each processor. Note that i dont actually have a multiprocessor system to test this on… so i guarantee nothing
_
.
-Zak