1

I want to list out the CPU Core / Processes in the system. When I have used select DeviceID from Win32_Processor, I got CPU0 as result; But I am expecting result as "CPU0,CPU1,CPU2,CPU3" since there are multiple cores. Is there any other one liner available for finding out this?

Thanking you...

4
  • You can get number of cores but not listed in that fashion that you are asking for. Commented Dec 21, 2015 at 11:36
  • I have seen it like this in a monitoring tool. Commented Dec 21, 2015 at 11:56
  • Just assuming, tool might have done this: you get number of cores i.e. 4 then you can list them as CPU0, CPU1, CPU2, CPU3 from your code... :) Commented Dec 21, 2015 at 12:02
  • May be right.... anyway thanks for your time. :) Commented Dec 21, 2015 at 12:11

1 Answer 1

1

I know this is old , but for others searching , Win32_Processor it contains, NumberOfCores and NumberOfLogicalProcessors

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.