Skip to content

Instantly share code, notes, and snippets.

@bradkrane
Created December 31, 2021 18:37
Show Gist options
  • Save bradkrane/20119a43fb293c6f84b313bee878e55c to your computer and use it in GitHub Desktop.
Save bradkrane/20119a43fb293c6f84b313bee878e55c to your computer and use it in GitHub Desktop.
Kills the uses way too much CPU JBL QuantumApp
$process = Get-Process -Name "QuantumApp"
if ($process -eq $null) {
exit
}
$time = New-TimeSpan -Start $process.StartTime
if ($time.Minutes -gt 5) {
Stop-Process -Force -Id $process.Id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment