Merge pull request #764 from silversword411/develop

Inverting exit codes
This commit is contained in:
Dan 2021-10-18 13:14:35 -07:00 committed by GitHub
commit d56d3dc271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
Exit 1
}