Sebastian Xavier
Sebastian Xavier

Reputation: 2619

Find CPU CORE using WMI query

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...

Upvotes: 1

Views: 604

Answers (1)

Liam
Liam

Reputation: 26

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

Upvotes: 1

Related Questions