mirror of
https://github.com/jonbranan/globalscape.git
synced 2025-01-17 22:41:56 -06:00
Testing concept to close gsawe.exe
This commit is contained in:
parent
f7060fd0c6
commit
a8e17b6cb6
7
powershell/AWE_Reaper.ps1
Normal file
7
powershell/AWE_Reaper.ps1
Normal 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() }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user