Update Detect-ActiveDesktop.ps1
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
$proc = Get-Process -Name SecurityHealthSystray -ErrorAction SilentlyContinue
|
$proc = Get-Process -Name SecurityHealthSystray -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
if ($null -ne $proc) {
|
if ($null -ne $proc) {
|
||||||
Write-Output "desktop-not-active"
|
|
||||||
exit 0
|
|
||||||
} else {
|
|
||||||
Write-Output "desktop-active"
|
Write-Output "desktop-active"
|
||||||
exit 0
|
exit 0
|
||||||
|
} else {
|
||||||
|
Write-Output "desktop-not-active"
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user