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 Find the worker process for a Hyper-V VM in 2012 R2 and above](https://eu-images.contentstack.com/v3/assets/blt07f68461ccd75245/blt2a121e7ba06d32c8/66180c5b1a743a371345078f/windows-server-2016_2_3.png?width=1280&auto=webp&quality=95&format=jpg&disable=upscale)
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
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