CmdID

CmdID / Commands

repair-bde

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. Windows commands reference

On Windows File repair-bde.exe

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

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. IMPORTANT: If the BitLocker metadata data on the drive is corrupt, you must be able to supply a backup key package in addition to the recovery password or recovery key. If you used the default key back up setting for Active Directory Domain Services, your key package is backed up there. You can use the BitLocker: Use BitLocker Recovery Password Viewer to obtain the key package from AD DS. Using the key package and either the recovery password or recovery key, you can decrypt portions of a BitLocker-protected drive, even if the disk is corrupted. Each key package works only for a drive with the corresponding drive identifier.

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

To attempt to repair drive C:, to write the content from drive C: to drive D: using the recovery key file (RecoveryKey.bek) stored on drive F:, and to write the results of this attempt to the log file (log.txt) on drive Z:, type

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

To attempt to repair drive C: and to write the content from drive C: to drive D: using the 48-digit recovery password specified, type

repair-bde C: D: -rp 111111-222222-333333-444444-555555-666666-777777-888888Identify

To force drive C: to dismount, attempt to repair drive C:, and then to write the content from drive C: to drive D: using the recovery key package and recovery key file (RecoveryKey.bek) stored on drive F:, type

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

To attempt to repair drive C: and to write the content from drive C: to drive D:, where you must type a password to unlock drive C: (when prompted), type

repair-bde C: D: -pwIdentify
<inputvolume>Identifies the drive letter of the BitLocker-encrypted drive that you want to repair. The drive letter must include a colon; for example: C:. If the path to a key package isn't specified, this command searches the drive for a key package. In the event that the hard drive is damaged, this command might not be able to find the package and will prompt you to provide the path.
<outputvolumeorimage>Identifies the drive on which to store the content of the repaired drive. All information on the output drive will be overwritten.
-rkIdentifies the location of the recovery key that should be used to unlock the volume. This command can also be specified as -recoverykey.
-rpIdentifies the numerical recovery password that should be used to unlock the volume. This command can also be specified as -recoverypassword.
-pwIdentifies the password that should be used to unlock the volume. This command can also be specified as -password
-kpIdentifies the recovery key package that can be used to unlock the volume. This command can also be specified as -keypackage.
-lfSpecifies the path to the file that will store Repair-bde error, warning, and information messages. This command may also be specified as -logfile.
-fForces a volume to be dismounted even if it cannot be locked. This command can also be specified as -force.
-? or /?Displays Help at the command prompt.

Windows

from tldr-pages, CC BY 4.0

Attempt to repair or decrypt a damaged BitLocker-encrypted volume.

Attempt to repair a specified volume

repair-bde C:Identify

Attempt to repair a specified volume and output to another volume

repair-bde C: D:Identify

Attempt to repair a specified volume using the provided recovery key file

repair-bde C: -RecoveryKey path\to\file.bekIdentify

Attempt to repair a specified volume using the provided numerical recovery password

repair-bde C: -RecoveryPassword passwordIdentify

Attempt to repair a specified volume using the provided password

repair-bde C: -Password passwordIdentify

Attempt to repair a specified volume using the provided key package

repair-bde C: -KeyPackage path\to\directoryIdentify

Log all output to a specific file

repair-bde C: -LogFile path\to\fileIdentify

Display help

repair-bde /?Identify