Host Processor & Host cores per processor

Reggie 20 Reputation points


I dont have physical access to the Hyper-V environment, and I cannot install additional software; so how would one determine the following:

  • How many physical processors the Hyper-V host has
  • How many cores per processor [not hyperthreaded] the Hyper-V host has

Would one do this via powershell? This is for licensing audit


A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,597 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 49,701 Reputation points

    Do you have remote access to the host server? If not then you cannot get this information. Within a guest VM you wouldn't see any of that info.

    If you can run PS on the host server then it is no different than getting it on a local machine. Something like this:

    Get-CimInstance -ClassName Win32_Processor | Select-Object -Property DeviceId, Name, NumberOfCores, NumberOfLogicalProcessors

    You should get back 1 row for each physical processor. If you get back 1 row then there is 1 physical processor, 2 rows = 2 processors, etc. For each processor you get the number of cores on that processor (they could differ). The logical processors tell you if hyperthreading is enabled.

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,996 Reputation points Microsoft Vendor

    Hi Reggie,

    Hope you're doing well.

    1. Try to connect to the server by using remote desktop and open "Task Manager" to check.
    2. Or youmay need to open PowerShell as an administrator and run the following command:

    Get-CimInstance -ClassName Win32_Processor | Select-Object -Property DeviceId, Name, NumberOfCores, NumberOfLogicalProcessors

    If you get back one row, there is one physical processor. If you get two rows, there are two processors, and so on. The NumberOfCores property in the output from the above command will give you the number of cores per processor (excluding hyperthreaded cores).

    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments