E
Eric
I've got a program I wrote that tracks our users, takes inventory of
hardware, etc. One function of the program is it uses a VBscript to
poll a machine for inventory using WMI. Works great.
I use the following routine to get the "Number of processors"
Set colSettings = objWMIService.ExecQuery ("Select * from
Win32_ComputerSystem",,48)
For Each objComputer2 in colSettings
intProcessorCount = formatNumber(objComputer.NumberOfProcessors)
Next
Again, nothing wrong with the code, except recently on some new PC's
we've gotten it returns a processor count of 2. (even though it is just
a single processor PC).
I checked the PC's device manager and it lists 2 processors. My
suspicion is that this is "Hyper-Threading" being detected. (since
these are new pcs)
Anyone know how to query WMI to see if HT is on the processor?
(thereby I can just subtract 1 processor if there is HT enabled)
hardware, etc. One function of the program is it uses a VBscript to
poll a machine for inventory using WMI. Works great.
I use the following routine to get the "Number of processors"
Set colSettings = objWMIService.ExecQuery ("Select * from
Win32_ComputerSystem",,48)
For Each objComputer2 in colSettings
intProcessorCount = formatNumber(objComputer.NumberOfProcessors)
Next
Again, nothing wrong with the code, except recently on some new PC's
we've gotten it returns a processor count of 2. (even though it is just
a single processor PC).
I checked the PC's device manager and it lists 2 processors. My
suspicion is that this is "Hyper-Threading" being detected. (since
these are new pcs)
Anyone know how to query WMI to see if HT is on the processor?
(thereby I can just subtract 1 processor if there is HT enabled)