This script provides a fast and simple way to check whether BitLocker encryption is enabled on your Windows devices. This is important for protecting sensitive company data from potential security breaches and ensuring compliance with security regulations.
The script works by using a special command that checks the protection level of BitLocker and returns an error level code of either 1 or 0, indicating whether BitLocker is active or not.
If the protection level is not set (error level code 1), the script displays the BitLocker status information and prints the message “Bitlocker is not active on this computer” in yellow text. If the protection level is set (error level code 0), the script displays the BitLocker status information and prints the message “Bitlocker is active on this computer” in yellow text.
This makes it easy to quickly check whether BitLocker encryption is active on a device and take any necessary action to ensure data security.
The Script:
Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *
File Type: ps1
#bitlocker_get_encryption_status Description : bitlocker_get_encryption_status
if(manage-bde -status -protectionaserrorlevel){
manage-bde -status
Write-host "Bitlocker is not active on this computer" -ForegroundColor Yellow
}
else{
manage-bde -status
Write-host "Bitlocker is active on this computer" -ForegroundColor Yellow
}
Technical Notes:
- Please note that BitLocker encryption is currently only available on Windows 10 Pro and 11 Pro, meaning that this script will only work on those two operating system versions.
- Admin permissions are needed to run this script.