Monday, April 4, 2016

Killing a Hung VM in Task Manager (Another PowerShell command)

This is another command of how to kill a Hung VM by identify the Process ID using PowerShell command :

image

For Windows 2012

Get-WmiObject -Namespace root\virtualization -class msvm_computersystem | select elementname, operationalstatus, processid, name| ft –auto

For Window 2012 R2

Get-WmiObject -Namespace root\virtualization\v2 -class msvm_computersystem | select elementname, operationalstatus, processid, name| ft –auto

Once the Process ID is obtain, launch the Task Manager and kill the VMWP.exe process with the correspondence Process  ID to that particular VM.

image

Hope this helps.

keywords : hang VM, hung VM, stuck VM, Hyper-V virtualization stuck Server 2012 R2, vmwp.exe, killing vwmp.exe

No comments:

Post a Comment