如何使用 BitLocker 命令列來解鎖、加密及解密磁碟機

The BitLocker command line lets you check encryption status, unlock a protected drive, enable BitLocker, or decrypt a drive using the built-in 管理-bde tool. For example, run manage-bde -status to check a drive or manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY to unlock it. This guide explains the essential BitLocker commands for Windows 11 and Windows 10.

當復原金鑰遺失或難以找到時,可使用下列專業工具 Magic Recovery Key 可透過自動 尋找可用的 BitLocker 復原金鑰 在您的系統上。.

支援 Windows 7/8/10/11 和 Windows Server

目錄

BitLocker Command Line Commands at a Glance

TaskBitLocker command
Check BitLocker statusmanage-bde -status
Check one drivemanage-bde -status D:
Unlock with a passwordmanage-bde -unlock D: -Password
Unlock with a recovery passwordmanage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY
啟用 BitLockermanage-bde -on D: -RecoveryPassword
Decrypt a drivemanage-bde -off D:
Pause encryptionmanage-bde -pause D:
Resume encryptionmanage-bde -resume D:

更換 D: with the drive letter you want to manage, and always open Command Prompt as an administrator before running these commands.

什麼是 BitLocker 指令行?

BitLocker 指令行通常稱為 manage-bde 指令,是一組可讓使用者直接從 Command Prompt 或 PowerShell 與 BitLocker 加密功能互動的指令。使用這些指令,您可以執行與 BitLocker 相關的多種作業,例如加密磁碟機、解密磁碟機、變更密碼和管理復原金鑰。

How to Unlock BitLocker with Command Line

Open Command Prompt as an administrator and first check the locked drive:

manage-bde -status D:

To unlock the drive with its password, run:

manage-bde -unlock D: -Password

Windows will then prompt you to enter the password securely. If you have the 48-digit BitLocker recovery password, use:

manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY

You can also unlock a drive with a .bek recovery key file:

manage-bde -unlock D: -RecoveryKey "E:\RecoveryKey.bek"

更換 D: with the locked drive and enter the recovery password exactly as saved, including the hyphens. The command line cannot bypass BitLocker encryption; it still requires a valid password, recovery password, recovery key file, or another authorized protector.

如何使用 BitLocker 指令行加密

1.以管理員身份開啟命令提示符

若要有效使用 manage - bde 指令,您需要有管理權限。在 Command Prompt 圖示上按一下滑鼠右鍵,然後選擇「以管理員身分執行」。

2.選擇要加密的磁碟機

確定您要加密的磁碟機代號。例如,如果您要加密 D: 磁碟機,可以使用下列指令:

manage–bde –on D:

此指令將啟動指定磁碟機的加密程序。預設情況下,BitLocker 會使用標準加密方式。如果要使用不同的加密模式,可以新增額外的參數。例如,要使用 XTS - AES 256 - 位元加密模式:

manage–bde – on D: – encryption XTS – AES256

系統也可能會提示您為加密磁碟機設定密碼。將來存取磁碟機時將需要此密碼。

如何使用 BitLocker 指令行解密

1.以管理員身份開啟命令提示符

就像加密一樣,您需要管理權限。.

2.解密硬碟機

若要解密磁碟機,例如 D: 磁碟機,請使用下列指令:

manage – bde – off D:

If the drive is locked, unlock it with a password or recovery key before running this command. After manage-bde -off D: is accepted, Windows starts decrypting the drive in the background. You can check the progress at any time with manage-bde -status D:. The time it takes to decrypt the drive depends on the size of the drive and the amount of data stored on it.

manage–bde – on D: – encryption XTS – AES256

How to Find a Missing BitLocker Recovery Key

Magic Recovery Key does not bypass BitLocker encryption. It scans the current computer and connected drives for available BitLocker recovery keys that may have been stored previously.

1.從可信的來源下載並安裝 Magic Recovery Key

支援 Windows 7/8/10/11 和 Windows Server

2.開啟軟體,然後在左側功能表中選擇 BitLocker Recovery Key

使用神奇還原鑰匙的步驟

3. 按一下搜尋讓軟體掃描 BitLocker 金鑰。

4. 找到金鑰後,複製金鑰並用它來解鎖加密的硬碟機。

使用神奇還原鑰匙的步驟

總結

BitLocker 指令行 提供強大且靈活的方式,透過下列工具管理 BitLocker 加密硬碟機 管理-bde, ,讓您可以解除鎖定磁碟機、檢視加密狀態,以及有效率地處理復原方案。對於熟悉使用 Command Prompt 或 PowerShell 的使用者而言,此方法提供比標準圖形介面更強大的控制力和自動化功能。.

但是,如果您遺失了您的 BitLocker 密碼或復原金鑰, 因此,僅使用命令列方法可能並不足夠。在這種情況下、, Magic Recovery Key 成為不可或缺的輔助工具。它可以自動掃描您的電腦、外部儲存裝置和系統記錄,以 找出可用的 BitLocker 復原金鑰, ,讓您更容易重新取得鎖定磁碟機的存取權。為了節省時間和避免永久性資料遺失,我們建議您下載 Magic Recovery Key 並在您使用受 BitLocker 保護的硬碟機時,讓它隨時待命。 BitLocker 指令行.

支援 Windows 7/8/10/11 和 Windows Server

常見問題

如何使用命令列解鎖 BitLocker?

You can unlock BitLocker from an elevated Command Prompt by running manage-bde -unlock D: -Password. If you have the 48-digit recovery password, run manage-bde -unlock D: -RecoveryPassword YOUR-48-DIGIT-KEY. Replace D: with the letter of the locked drive.

如果忘記了 BitLocker 密碼,該怎麼辦?

如果您忘記了密碼,仍可使用 BitLocker 復原金鑰解除鎖定硬碟機。如果遺失了恢復金鑰,Magic Recovery Key 等工具可以幫助您掃描並擷取它。.

我需要管理員權限才能使用 BitLocker 指令列工具嗎?

Yes. Open Command Prompt as an administrator and run manage-bde -status to check every drive, or manage-bde -status D: to check a specific drive. The results show its conversion status, encryption percentage, encryption method, protection status and lock status.

我可以使用命令列檢查 BitLocker 的狀態嗎?

是的,您可以透過執行來檢視所有磁碟機的加密狀態:manage-bde -status此指令會顯示加密進度、保護狀態和加密方法。.

我可以使用命令列啟用或停用 BitLocker 嗎?

是的,BitLocker 指令行可讓您使用 manage-bde -on 或 manage-bde -off 開啟或關閉 BitLocker,視您的需求而定。.

可以使用命令列備份 BitLocker 復原金鑰嗎?

可以。您可以使用新增或管理復原保護器的指令,將復原金鑰匯出到特定位置,協助您保持安全備份。.

我可以使用 PowerShell 而非 Command Prompt 來執行 BitLocker 作業嗎?

絕對可以。PowerShell 支援 BitLocker cmdlets,例如 Unlock-BitLocker,提供類似的功能與指令碼支援。.

如果 BitLocker 因元資料遺失或損毀而無法解鎖,該怎麼辦?

If a drive cannot be unlocked even with a valid recovery key, stop writing data to it and check the drive for hardware or BitLocker metadata problems. repair-bde may help recover data from a damaged BitLocker volume, but it requires a valid recovery password or recovery key and a separate output drive.

Erin Smith 是 Amagicsoft 公認最專業的作家之一。過去 10 年來,她不斷磨練自己的寫作技巧,幫助數百萬讀者解決技術問題。.