9 lines
198 B
PowerShell
9 lines
198 B
PowerShell
$proc = Get-Process -Name SecurityHealthSystray -ErrorAction SilentlyContinue
|
|
|
|
if ($null -ne $proc) {
|
|
Write-Output "ESP-not-active"
|
|
exit 0
|
|
} else {
|
|
Write-Output "ESP-active"
|
|
exit 0
|
|
} |