From 32a202aff4103e7b43b6c2e8077abb58aa0ff52c Mon Sep 17 00:00:00 2001 From: silversword411 Date: Mon, 18 Oct 2021 16:01:29 -0400 Subject: [PATCH] Inverting exit codes --- scripts/Win_Bitlocker_Drive_Check_Status.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Win_Bitlocker_Drive_Check_Status.ps1 b/scripts/Win_Bitlocker_Drive_Check_Status.ps1 index b58db7d3..2d7e8f56 100644 --- a/scripts/Win_Bitlocker_Drive_Check_Status.ps1 +++ b/scripts/Win_Bitlocker_Drive_Check_Status.ps1 @@ -23,9 +23,9 @@ if ((Get-BitLockerVolume -MountPoint $Drive).ProtectionStatus -eq 'On') { Start-Sleep -Seconds 5 } until ($EncryptionPercentage -match 100) Write-Output "Bitlocker is enabled and Encryption completed" - Exit 1 + Exit 0 } else { Write-Output "BitLocker is not turned on for this volume!" - Exit 0 -} \ No newline at end of file + Exit 1 +}