Skip navigation
Find VM worker process for 2012 R2 and above Hyper-V

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

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    

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish