Sometimes the VM we tried to stop hangs. So in order to kill the process using the Task Manager, we can end process of VMWP.exe. But the next question is which one. Each VM has a unique Process ID.
Therefore, I launch the elevated Powershell by executing the following command below
Get-WmiObject win32_process -Filter "Name like '%vmwp%'" | Select-Object ProcessID, @{Label="VMName";expression={(Get-VM -Id $_.commandline.split("")[1]|Select-Object VMName).VMName}}|ft –AutoSize
So I go back to the Task Manager and Right-Click on it and end task,base on the Process ID of that particular VM.
Hope this command helps you as it helped me.
keywords : hang VM, hung VM, stuck VM, Hyper-V virtualization stuck Server 2012 R2, vmwp.exe, killing vwmp.exe
No comments:
Post a Comment