Powershell Script to Check – Number of Cores and Logical Processors


Execute the below powershell script to get the number of cores and logical processors on the server.

Get-WmiObject –class Win32_processor | ft systemname,Name,DeviceID,NumberOfCores,NumberOfLogicalProcessors, Addresswidth

You can even check all the processor values from win32_Processor class.

Get-WmiObject –class Win32_processor | select *

4 thoughts on “Powershell Script to Check – Number of Cores and Logical Processors

  1. jake's avatarjake

    the command is very inconstant. one time it will show all of the processors the next time it will not. Typical MS

    Reply
  2. Pingback: How to gather anything you want from a system and write it to Log Analytics

Leave a reply to Gerard Cancel reply