Testing concept to close gsawe.exe

This commit is contained in:
jblu 2022-05-04 10:24:26 -05:00
parent f7060fd0c6
commit a8e17b6cb6

View File

@ -0,0 +1,7 @@
$startTimeLimit = (get-date) - (new-timespan -minutes 2)
$processes_to_kill = get-process |
where {$_.StartTime -lt $startTimeLimit -and ($_.path -like "GSAWE.exe") }
if ($processes_to_kill -ne $null)
{
$processes_to_kill | foreach { $_.Kill() }
}