Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ilyaigpetrov/083519977f82244cb26a957753996709 to your computer and use it in GitHub Desktop.
Save ilyaigpetrov/083519977f82244cb26a957753996709 to your computer and use it in GitHub Desktop.
Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB | How to fix

Windows boot manager asks for BitLocker recovery key on each boot after updating GRUB

If Windows boot manager asks for BitLocker recovery key each boot then:

  1. Get your recovery code from your windows account: https://account.microsoft.com/devices/recoverykey.
  2. Reboot into Windows and input this code when asked.

You may check that in PowerShell (run as Administrator) you get such error:

> Suspend-BitLocker -MountPoint "C:"
> Resume-BitLocker -MountPoint "C:"
Resume-BitLocker : The path specified in the Boot Configuration Data (BCD) for a BitLocker Drive Encryption integrity-p
rotected application is incorrect. Please verify and correct your BCD settings and try again. (Exception from HRESULT:
0x80310052)
At line:1 char:1
+ Resume-BitLocker -MountPoint "C:"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Resume-BitLocker

If you don't get any error then just try rebooting after this suspend-resume commands. If you get the error then here is how to fix it.

In PowerShell:

> Suspend-BitLocker -MountPoint "C:"
> diskpart
list disk
select disk 0 # If C: is 0
list partition
select partition 3 # Recovery, around 500mb
assign letter=s
exit

In CMD (cmd.exe, command prompt):

> bcdedit -set {BOOTMGR} device partition=S:
> bcdedit -set {MEMDIAG} device partition=S:

In PowerShell

> Resume-BitLocker -MountPoint "C:"

Reboot your machine. Recovery code won't be asked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment