Created
December 31, 2021 18:37
-
-
Save bradkrane/20119a43fb293c6f84b313bee878e55c to your computer and use it in GitHub Desktop.
Kills the uses way too much CPU JBL QuantumApp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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