diff --git a/virtualbox-wrapper.ps1 b/virtualbox-wrapper.ps1 index 7fd2bf04..1eb2c0a5 100644 --- a/virtualbox-wrapper.ps1 +++ b/virtualbox-wrapper.ps1 @@ -52,6 +52,7 @@ if ($Command -eq 'up') { } Receive-Job $MonitorJob } + Get-Job | Stop-Job | Remove-Job -Force } elseif ($Command -eq 'down') { Write-Output "Stopping $MachineName" VBoxManage.exe controlvm $MachineName poweroff