System command

repair bde command

Attempts to reconstruct critical parts of a severely damaged drive and salvage recoverable data if the drive was encrypted by using BitLocker and if it has a valid recovery password or recovery key for decryption. This guide lists the documented syntax and parameters for repair bde; check Microsoft Learn for version, role and execution-context requirements.

Availability: Microsoft Learn command reference spanning Windows client and Windows Server releases; some entries are legacy, role-specific, optional-feature or interactive subcommands.中文

Documented syntax

repair-bde <inputvolume> <outputvolumeorimage> [-rk] [-rp] [-pw] [-kp] [-lf] [-f] [{-?|/?}]

The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.

Examples

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

repair-bde C: D: -rk F:\RecoveryKey.bek -lf Z:\log.txt

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

repair-bde C: D: -rp <48-digit-recovery-password>

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

repair-bde C: D: -kp F:\RecoveryKeyPackage -rk F:\RecoveryKey.bek -f

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

repair-bde C: D: -pw

Parameters, options and clauses

Option / clauseDescription
<inputvolume>Specify the source BitLocker volume, including its colon (for example, C:).
<outputvolumeorimage>Specify the destination volume or image. All existing destination contents are deleted and overwritten.
-rk <recoverykey> / -recoverykeyUnlock the volume with a recovery key file.
-rp <recoverypassword> / -recoverypasswordUnlock the volume with the 48-digit recovery password.
-pw / -passwordPrompt for the volume password.
-kp <keypackage> / -keypackageUse a BitLocker recovery key package.
-lf <logfile> / -logfileWrite repair messages to the specified log file.
-f / -forceForce dismount even if the volume cannot be locked.
-? / /?Display command help.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory