From 436cd86d8c42c45238003c598cbf461f4ed45bf5 Mon Sep 17 00:00:00 2001 From: t3hn3rd Date: Sun, 23 Mar 2025 17:54:55 +0000 Subject: [PATCH] Updated virtualbox wrapper as it was causing stale powershell processes to build up over time - Updated `Virtualbox-Wrapper.ps1` to include `Get-Job | Stop-Job | Remove-Job -Force` at the end of execution, as the spawning of jobs was causing stale PowerShell processes to build up over time. --- virtualbox-wrapper.ps1 | 1 + 1 file changed, 1 insertion(+) 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