Find the worker process for a Hyper-V VM in 2012 R2 and above

What you need to do to find the worker process for a VM with 2012 R2 and above.

John Savill

May 3, 2016

1 Min Read
Find the worker process for a Hyper-V VM in 2012 R2 and above

Q. How can I find the process ID for a worker process with Windows Server 2012 R2 Hyper-V and above?

A. To find the process ID for a worker process for Windows Server 2012 R2 and above Hyper-V use the PowerShell below. Note the change from previous versions is the v2 virtualization namespace is used instead of the v1. Note this must run in an elevated PowerShell session or no output will be returned. Replace with the actual name of the VM (and don't type the angle brackets).

(Get-WmiObject -q "SELECT * FROM Msvm_ComputerSystem WHERE ElementName = ''" -n rootvirtualizationv2).ProcessID

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like