Fix Suspended BitLocker Protection Automatically With Intune Remediations
Before you start
- Windows devices enrolled in Intune (Entra joined or hybrid joined)
- A licence that includes Remediations: Windows Enterprise E3/E5 (in Microsoft 365 F3, E3 or E5), Education A3/A5, or Windows VDA
- Windows license verification switched on in Intune (Tenant admin > Connectors and tokens > Windows data)
- An Intune role that can manage device configurations
A batch of laptops turned up in the compliance report with BitLocker protection showing as off. The drives were still fully encrypted, protection had just been left suspended after some servicing work.
Nobody wants to touch forty laptops by hand for that. An Intune Remediation can spot it and fix it automatically.
Why protection gets left suspended
Suspending BitLocker is normal. Windows and most vendor tools do it before a BIOS or firmware update, so the TPM changes don’t trigger a recovery key prompt on the next boot. Normally protection switches itself back on after a restart or two.
It gets stuck when something suspends it with no end date. Suspend-BitLocker -RebootCount 0 leaves it off until someone resumes it by hand, and the odd update tool or support session does the same. The drive stays encrypted, but the key is sitting in the clear, so a stolen laptop isn’t protected.
How a remediation works
A remediation is a pair of scripts. The detection script checks for a problem and the remediation script fixes it, but only when detection says something is wrong.
Detection exits with 0 for “all good” and 1 for “fix this”. Intune only runs the remediation script on a 1, then runs detection again to check the fix worked.
The detection script
It checks whether BitLocker protection is on for the system drive. If it is on, the script exits with 0 and nothing else happens. If it is off, or the check fails, it exits with 1 and triggers the fix.
try {
$vol = Get-BitLockerVolume -MountPoint $env:SystemDrive -ErrorAction Stop
if ($vol.ProtectionStatus -eq 'On') {
Write-Output 'Compliant: BitLocker protection is On'
exit 0
}
Write-Output "Non-compliant: ProtectionStatus is $($vol.ProtectionStatus)"
exit 1
}
catch {
Write-Output "Error checking BitLocker: $($_.Exception.Message)"
exit 1
}
The remediation script
It resumes protection, but only on a drive that is fully encrypted and currently has protection off.
try {
$vol = Get-BitLockerVolume -MountPoint $env:SystemDrive -ErrorAction Stop
if ($vol.VolumeStatus -eq 'FullyEncrypted' -and $vol.ProtectionStatus -eq 'Off') {
Resume-BitLocker -MountPoint $env:SystemDrive -ErrorAction Stop | Out-Null
Write-Output 'BitLocker protection resumed'
exit 0
}
Write-Output "No action taken (VolumeStatus: $($vol.VolumeStatus))"
exit 1
}
catch {
Write-Output "Remediation failed: $($_.Exception.Message)"
exit 1
}
It does not turn on BitLocker for an unencrypted drive. Use an Intune disk encryption policy for that job.
Setting it up in Intune
- In the Intune admin center, go to Devices, then Scripts and remediations, then the Remediations tab.
- Create a new remediation and give it a clear name.
- Upload Detect.ps1 as the detection script and Remediate.ps1 as the remediation script.
- Set the scripts to run using the logged-on credentials: No, so they run as SYSTEM.
- Set 64-bit PowerShell to Yes.
- Assign it to a pilot group and pick a schedule, such as daily.
Checking it worked
Open the remediation and look at the device status. You can see which devices were already fine, which were fixed, and which failed.
Start with a small pilot group and check a few laptops by hand before you roll it out wider. On a fixed laptop, this should now say Protection Status: Protection On:
manage-bde -status C:
Good to know
- A suspended drive that is not fully encrypted is left alone, on purpose.
- If the script exits with 1 and no action, it is flagged as failed, which is a useful prompt to take a look.
- If a laptop is halfway through a BIOS update when the remediation runs, it will resume protection early. Running it daily rather than hourly keeps that unlikely.
Both scripts are in the Remediations folder of my GitHub repo, free to use under the MIT licence. Give them a spin and see what turns up.

