diff --git a/Detect-ActiveDesktop.ps1 b/Detect-ActiveDesktop.ps1 index 1bbd2e5..3229d37 100644 --- a/Detect-ActiveDesktop.ps1 +++ b/Detect-ActiveDesktop.ps1 @@ -3,9 +3,9 @@ $proc = Get-Process -Name SecurityHealthSystray -ErrorAction SilentlyContinue if ($null -ne $proc) { - Write-Output "desktop-not-active" - exit 0 -} else { Write-Output "desktop-active" exit 0 +} else { + Write-Output "desktop-not-active" + exit 0 } \ No newline at end of file