Q. How can I find the VM worker process for a VM on 2012 R2 Hyper-V or above?
A. To check for the process ID for the worker process of a particular VM use the following PowerShell query:
PS C:\> (Get-WmiObject -q "SELECT * FROM Msvm_ComputerSystem WHERE ElementName = 'savdaldda01'" -n root\virtualization\v2).ProcessID
10368
PS C:\> get-process -Id 10368
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
477 25 11476 25940 679.31 10368 0 vmwp
0 comments
Hide comments