Syntax error when unlocking bitlocker

maha 0 Reputation points
2025-12-14T21:12:13.8166667+00:00

When trying to do unlocking of BitLocker using command prompt, I keep getting syntax error, when unlocking.

the command used: manage-bde -unlock c: -rp <48 digit recovery password>

The error I get: The Syntax of the command is incorrect.

Need help

Windows for home | Windows 11 | Security and privacy
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-14T21:12:21.5666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The syntax error you are encountering when trying to unlock BitLocker using the command prompt may be due to the incorrect use of the -rp switch. The correct command format for unlocking a BitLocker-protected drive using a recovery password should be as follows:

    manage-bde -unlock C: -RecoveryPassword <48-digit recovery password>
    

    Make sure to replace <48-digit recovery password> with the actual recovery password without the angle brackets. Ensure that there are no extra spaces or characters in the command, as that can also lead to syntax errors.

    If you continue to face issues, double-check the recovery password for accuracy and ensure that you are running the command prompt with administrative privileges.

    0 comments No comments

  2. EmilyS726 186.7K Reputation points Independent Advisor
    2025-12-14T21:52:11.04+00:00

    Hello,

    You can refer to the instruction here: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/manage-bde-unlock

    This is the correct syntax:

    manage-bde -unlock D: -RecoveryPassword 123456-234567-345678-456789-567890-678901-789012-890123
    

    No brackets. Make sure dash is used in between

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.