Using PowerShell to find the virtual processor to logical processor ratio of Hyper-V


I lifted the code from Ben Armstrong’s MSDN Blog here – so have to give credit where credit is due:

http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/08/13/using-powershell-to-find-the-virtual-processor-to-logical-processor-ratio-of-hyper-v.aspx

BUT…

I’ll take it a step further…

I wanted to run this script from my VMM Library instead of on every phyiscal host.  So, I modified the script so that you could enumerate the physical hosts managed by VMM and then select the host you want to run the script against. 

Type the code into notepad and save as a .ps1 file.  Stick it in your VMM Library and from there you can right-click to “Run in PowerShell”.

Enjoy!

 

image

Here’s the output:

image


Comments (0)

Skip to main content