- Bitlocker settings are applied by using traditional AD “Group Policy Objects” (GPO).
- Bitlocker recovery passwords are stored in “Microsoft Bitlocker and Monitoring Administration” (MBAM).
- All encrypted devices are running Windows 10 with TPM 1.2 or above.
How
- We will start by exporting data from the MBAM server to an Excel Spreadsheet.
- (optional): Export Bitlocker data from Active Directory (AD).
- Create a device encryption report. In this post we will use the device encryption report in MEM to find any decrypted devices that needs to be handled.
- Deploy a PowerShell script using MEM to make all currently encrypted devices upload their Bitlocker recovery passwords.
- Create and deploy an encryption profile to all devices to make sure we catch any decrypted devices. This profile will be used to encrypt new devices as well.
- (Optional): In this post we will register an app to allow us to run Graph API queries to fetch Bitlocker recovery passwords.
- We will look at the admin roles needed to get the Bitlocker recovery password from AAD/MEM.
- We will have a look at the admin and end-user experiences.
Export MBAM data to an Excel spreadsheet
Note: Skip this step if your set up does not include MBAM.
If your current setup consists of an MBAM server it is a good idea to export all current MBAM data to an Excel spreadsheet. This allows for us to have a backup in-case we need it after the MBAM servers have been shut down.
- Create RDP-session to the MBAM SQL server.
- On the MBAM SQL server open: “SQL Management Studio“
- Navigate to: “Databases” -> “MBAM Recovery and Hardware” -> “Tables” -> “RecoveryAndHardwareCore.Keys”
- Right click “RecoveryAndHardwareCore.Keys” and choose: “Select Top 1000 Rows”
- Optional: If you have more than 1000 devices: change “1000” to a higher number.
- Run the Query.
- To copy the results to Excel: Press “CTRL+A” to mark all results -> Press “CTRL+C” to add the results to clipart -> Create a new Excel spreadsheet -> Insert the result from clipart by pressing “CTRL+V“.
- Step one is now complete. We have successfully created a backup of our MBAM data! Store the document in a safe location.
Optional: Export AD Bitlocker data to text file
Note: User this if you are using AD to store Bitlocker data.
- Sign in to a domain controller with permissions to read the Bitlocker data from AD.
- Run below script to save the Bitlocker data to a text file, change “$exportLocation” as per you need.
$Computers = Get-ADComputer -Filter *
$exportLocation = 'C:\temp\Bitlocker-AD-Export.txt'
foreach ($computer in $computers) {
#$objComputer = Get-ADComputer $computer
if ($Bitlocker_Object = Get-ADObject -Filter { objectclass -eq 'msFVE-RecoveryInformation' } -SearchBase $computer.DistinguishedName -Properties 'msFVE-RecoveryPassword' | Select-Object -ExpandProperty 'msFVE-RecoveryPassword') {
Add-Content -Value "$computer $Bitlocker_Object" -Path $exportLocation
}
}
Encryption Report
Now that we have exported BitLocker data from AD or MBAM (based on your set up) we will create an encryption report to make sure that all of our devices are encrypted.
- Log in to MEM as an admin: https://intune.microsoft.com
- Navigate to: “Devices” -> “Monitor“
- Click “Encryption Report“
- This report comes in handy when you need to measure device encryption compliance. It is a good practice to always have all physical Windows 10 devices encrypted.
- Take note of any “Not encrypted” devices. We will need to make sure all physical devices are encrypted later on. In this demo I have one device that is Not encrypted – this is a “Windows Virtual Desktop” and will not be encrypted at this point.
- (Optional): Export the report by clicking “Export” and click “Download“
That is it for part 1. We have exported Bitlocker data from AD and MBAM (based on your need) and created an encryption report.
You will find part 2 of this series here
You will find part 3 of this series here
2 thoughts on “Move Bitlocker Management to Intune Part 1”
This is exactly what we are looking for, is the Powershell script to upload to the keys available yet?
Hello, part 2 is now available here:
https://www.nicklasahlberg.se/2021/04/05/move-bitlocker-management-to-microsoft-endpoint-manager-part-2/