D
David Holcomb
I see some inconsistencies between Win32_Processor.Name and
Win32_Processor.Family, and I would like to understand if this behavior is
intentional or a bug in WMI.
* I have a machine at home where Win32_Processor.Name is reported as "AMD
Athlon(TM) XP 1900+" but the Win32_Processor.Family is reported as a value
of 29, which is supposed to be "AMD Duron". I thought in this case the
processor family would return value 28 for "AMD Athlon". I realize there
may be something in the relationship between these two processors I simply
don't understand, so I ask - is this the correct behavior? Is it a bug or
by design? I wonder if, possibly, the two values are backwards in the MSDN
documentation...
* Here at work I have a Pentium-4 where Processor.Name gets returned as
"Intel(R) Pentium(R) 4 CPU 2.40GHz", but the Win32_Processor.Family comes
back with a value of 2, or "Unknown". Is there supposed to be a processor
family which maps to the newer Pentium-4 processor? According to the MSDN
docs, a value of 178 is supposed to be Pentium 4. Is it a bug or by design
that the processor family is returned as "Unknown" ? This particular CPU is
a Xeon.
Here is a snippet of the code:
szComputerName = "."
set WMIService_CIMV2 =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & szComputerName &
"\root\cimv2")
set ProcessorSet = WMIService_CIMV2.ExecQuery ("select * from
Win32_Processor")
for each Processor in ProcessorSet
Name = LTrim(Processor.Name)
if (Right(Name, Len(" processor")) = " processor") then Name =
Left(Name, Len(Name) - Len(" processor"))
Family = Processor.Family
WScript.Echo Processor.Name
WScript.Echo Processor.Family
next
set ProcessorSet = Nothing
set WMIService_CIMV2 = Nothing
Thanks,
David Holcomb
Win32_Processor.Family, and I would like to understand if this behavior is
intentional or a bug in WMI.
* I have a machine at home where Win32_Processor.Name is reported as "AMD
Athlon(TM) XP 1900+" but the Win32_Processor.Family is reported as a value
of 29, which is supposed to be "AMD Duron". I thought in this case the
processor family would return value 28 for "AMD Athlon". I realize there
may be something in the relationship between these two processors I simply
don't understand, so I ask - is this the correct behavior? Is it a bug or
by design? I wonder if, possibly, the two values are backwards in the MSDN
documentation...
* Here at work I have a Pentium-4 where Processor.Name gets returned as
"Intel(R) Pentium(R) 4 CPU 2.40GHz", but the Win32_Processor.Family comes
back with a value of 2, or "Unknown". Is there supposed to be a processor
family which maps to the newer Pentium-4 processor? According to the MSDN
docs, a value of 178 is supposed to be Pentium 4. Is it a bug or by design
that the processor family is returned as "Unknown" ? This particular CPU is
a Xeon.
Here is a snippet of the code:
szComputerName = "."
set WMIService_CIMV2 =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & szComputerName &
"\root\cimv2")
set ProcessorSet = WMIService_CIMV2.ExecQuery ("select * from
Win32_Processor")
for each Processor in ProcessorSet
Name = LTrim(Processor.Name)
if (Right(Name, Len(" processor")) = " processor") then Name =
Left(Name, Len(Name) - Len(" processor"))
Family = Processor.Family
WScript.Echo Processor.Name
WScript.Echo Processor.Family
next
set ProcessorSet = Nothing
set WMIService_CIMV2 = Nothing
Thanks,
David Holcomb