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 +}