sync: auto-sync from HOWARD-HOME at 2026-05-26 12:40:52
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-05-26 12:40:52
This commit is contained in:
@@ -116,9 +116,9 @@ $ScannerDefs = @(
|
|||||||
Category = 'process-killer'
|
Category = 'process-killer'
|
||||||
Exe = "$Base\downloads\rkill.exe"
|
Exe = "$Base\downloads\rkill.exe"
|
||||||
InstallerExe = $null
|
InstallerExe = $null
|
||||||
ScanArgs = @('-s', "-l `"$Base\logs\rkill.log`"")
|
ScanArgs = @('-s', "-l `"{LOG_ROOT}\rkill.log`"")
|
||||||
CleanArgs = @('-s', "-l `"$Base\logs\rkill.log`"")
|
CleanArgs = @('-s', "-l `"{LOG_ROOT}\rkill.log`"")
|
||||||
LogSrc = $null
|
LogSrc = '{LOG_ROOT}\rkill.log'
|
||||||
TimeoutMin = 10
|
TimeoutMin = 10
|
||||||
RandomizeExe = $false
|
RandomizeExe = $false
|
||||||
PreCloseProcesses = @()
|
PreCloseProcesses = @()
|
||||||
@@ -188,10 +188,10 @@ $ScannerDefs = @(
|
|||||||
Category = 'antimalware'
|
Category = 'antimalware'
|
||||||
Exe = "$Base\downloads\esetonlinescanner.exe"
|
Exe = "$Base\downloads\esetonlinescanner.exe"
|
||||||
InstallerExe = $null
|
InstallerExe = $null
|
||||||
ScanArgs = @('--install-silent', '--scan-potentially-unwanted=yes', '--scan-potentially-unsafe=yes')
|
ScanArgs = @('/silent', '/unwanted')
|
||||||
CleanArgs = @('--install-silent', '--remove-found-threats=yes', '--scan-potentially-unwanted=yes', '--scan-potentially-unsafe=yes')
|
CleanArgs = @('/silent', '/unwanted', '/clean')
|
||||||
LogSrc = $null
|
LogSrc = $null
|
||||||
TimeoutMin = 120
|
TimeoutMin = 240
|
||||||
RandomizeExe = $false
|
RandomizeExe = $false
|
||||||
PreCloseProcesses = @()
|
PreCloseProcesses = @()
|
||||||
PreCleanPaths = @()
|
PreCleanPaths = @()
|
||||||
@@ -243,10 +243,13 @@ function Wait-ProcessWithTimeout {
|
|||||||
while (-not $Process.HasExited) {
|
while (-not $Process.HasExited) {
|
||||||
if ((Get-Date) -gt $deadline) {
|
if ((Get-Date) -gt $deadline) {
|
||||||
try { $Process.Kill() } catch {}
|
try { $Process.Kill() } catch {}
|
||||||
|
$Process.WaitForExit(5000) | Out-Null
|
||||||
return $false
|
return $false
|
||||||
}
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
}
|
}
|
||||||
|
# Flush the exit code — required before ExitCode property is readable
|
||||||
|
$Process.WaitForExit(5000) | Out-Null
|
||||||
return $true
|
return $true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user