[HYPER-V] – KILL VM PROCESS

To kill a VM process follow the steps below:

Open POWERSHELL as administrator:

# Copy VM name
GET-VM

# Get your VM ID
$vmGUID = (Get-VM 'YOUR-VM-NAME').id

# Get VM Process
$VMWMProc = (Get-WMIObject Win32_Process | ? {$_.Name -match 'VMWP' -and $_.CommandLine -match $vmGUID})

# Kill it
Stop-Process ($VMWMProc.ProcessId) -Force

Hyper-VPowerShell