From d6c4dc419d8e7c44aba48babbcc7391ce0d45a05 Mon Sep 17 00:00:00 2001 From: Paolo Matarazzo <74918781+paolomatarazzo@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:24:20 -0400 Subject: [PATCH] updates --- .../bitlocker/operations-guide.md | 331 +++++++++--------- 1 file changed, 165 insertions(+), 166 deletions(-) diff --git a/windows/security/operating-system-security/data-protection/bitlocker/operations-guide.md b/windows/security/operating-system-security/data-protection/bitlocker/operations-guide.md index bec2de5928..295ea1754a 100644 --- a/windows/security/operating-system-security/data-protection/bitlocker/operations-guide.md +++ b/windows/security/operating-system-security/data-protection/bitlocker/operations-guide.md @@ -31,6 +31,12 @@ The BitLocker drive encryption tools include the two command-line tools: - *Configuration Tool* (`manage-bde.exe`) can be used for scripting BitLocker operations, offering options that aren't present in the BitLocker Control Panel applet. For a complete list of the `manage-bde.exe` options, see the [Manage-bde reference](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/ff829849(v=ws.11)) - *Repair Tool* (`repair-bde.exe`) is useful for disaster recovery scenarios, in which a BitLocker protected drive can't be unlocked normally or using the recovery console +### BitLocker Control Panel applet + +Encrypting volumes with the BitLocker Control Panel (select **Start**, enter `BitLocker`, select **Manage BitLocker**) is how many users will use BitLocker. The name of the BitLocker Control Panel applet is *BitLocker Drive Encryption*. The applet supports encrypting operating system, fixed data, and removable data volumes. The BitLocker Control Panel organizes available drives in the appropriate category based on how the device reports itself to Windows. Only formatted volumes with assigned drive letters appear properly in the BitLocker Control Panel applet. + +To start encryption for a volume, select **Turn on BitLocker** for the appropriate drive to initialize the **BitLocker Drive Encryption Wizard**. **BitLocker Drive Encryption Wizard** options vary based on volume type (operating system volume or data volume). + ## Check the BitLocker status To check the BitLocker status of a particular volume, administrators can look at the status of the drive in the BitLocker Control Panel applet, Windows Explorer, `manage-bde.exe` command-line tool, or Windows PowerShell cmdlets. Each option offers different levels of detail and ease of use. @@ -106,17 +112,22 @@ If a drive is pre-provisioned with BitLocker, a status of **Waiting for Activati ### OS drive with TPM protector -The following example shows how to enable BitLocker on an operating system drive using only the TPM protector: +The following example shows how to enable BitLocker on an operating system drive using only the TPM protector and no recovery key: #### [:::image type="icon" source="images/powershell.svg"::: **PowerShell**](#tab/powershell) -The following example shows how to enable BitLocker on an operating system drive using only the TPM protector: - ```powershell Enable-BitLocker C: -TpmProtector ``` #### [:::image type="icon" source="images/cmd.svg"::: **Command Prompt**](#tab/cmd) + +```cmd +manage-bde.exe -on C: +``` + #### [:::image type="icon" source="images/controlpanel.svg"::: **Control Panel**](#tab/controlpanel) + + --- ### OS drive with TPM protector and startup key @@ -125,158 +136,12 @@ In the next example, we add one more protector, the *StartupKey* protector, and #### [:::image type="icon" source="images/powershell.svg"::: **PowerShell**](#tab/powershell) - ```powershell Enable-BitLocker C: -StartupKeyProtector -StartupKeyPath -SkipHardwareTest ``` #### [:::image type="icon" source="images/cmd.svg"::: **Command Prompt**](#tab/cmd) -#### [:::image type="icon" source="images/controlpanel.svg"::: **Control Panel**](#tab/controlpanel) ---- -### Data volumes - -#### [:::image type="icon" source="images/powershell.svg"::: **PowerShell**](#tab/powershell) - - -Data volume encryption using Windows PowerShell is the same as for operating system volumes. Add the desired protectors prior to encrypting the volume. The following example adds a password protector to the `E:` volume using the variable `$pw` as the password. The `$pw` variable is held as a SecureString value to store the user-defined password: - -```powershell -$pw = Read-Host -AsSecureString - -Enable-BitLockerKeyProtector E: -PasswordProtector -Password $pw -``` - -> [!NOTE] -> The BitLocker cmdlet requires the key protector GUID enclosed in quotation marks to execute. Ensure the entire GUID, with braces, is included in the command. - -**Example**: Use PowerShell to enable BitLocker with a TPM protector - -```powershell -Enable-BitLocker D: -EncryptionMethod XtsAes256 -UsedSpaceOnly -TpmProtector -``` - -**Example**: Use PowerShell to enable BitLocker with a TPM+PIN protector, in this case with a PIN set to *123456*: - -```powershell -$SecureString = ConvertTo-SecureString "123456" -AsPlainText -Force -Enable-BitLocker C: -EncryptionMethod XtsAes256 -UsedSpaceOnly -Pin $SecureString -TPMandPinProtector -``` -#### [:::image type="icon" source="images/cmd.svg"::: **Command Prompt**](#tab/cmd) -#### [:::image type="icon" source="images/controlpanel.svg"::: **Control Panel**](#tab/controlpanel) ---- - -### Active Directory protector - -The **ADAccountOrGroup** protector is an Active Directory SID-based protector. This protector can be added to both operating system and data volumes, although it doesn't unlock operating system volumes in the pre-boot environment. The protector requires the SID for the domain account or group to link with the protector. BitLocker can protect a cluster-aware disk by adding an SID-based protector for the Cluster Name Object (CNO) that lets the disk properly failover and unlock to any member computer of the cluster. - -> [!WARNING] -> The SID-based protector requires the use of an additional protector such as TPM, PIN, recovery key, etc. when used on operating system volumes. - - -#### [:::image type="icon" source="images/powershell.svg"::: **PowerShell**](#tab/powershell) - -To add an **ADAccountOrGroup** protector to a volume, either the domain SID is needed or the group name preceded by the domain and a backslash. In the example below, the **CONTOSO\\Administrator** account is added as a protector to the data volume G. - -```powershell -Enable-BitLocker G: -AdAccountOrGroupProtector -AdAccountOrGroup CONTOSO\Administrator -``` - -For users who wish to use the SID for the account or group, the first step is to determine the SID associated with the account. To get the specific SID for a user account in Windows PowerShell, use the following command: - -```powershell -Get-ADUser -filter {samaccountname -eq "administrator"} -``` - -> [!NOTE] -> Use of this command requires the RSAT-AD-PowerShell feature. - -> [!TIP] -> In addition to the Windows PowerShell command above, information about the locally logged on user and group membership can be found using: `WHOAMI /ALL`. This doesn't require the use of additional features. -#### [:::image type="icon" source="images/cmd.svg"::: **Command Prompt**](#tab/cmd) -#### [:::image type="icon" source="images/controlpanel.svg"::: **Control Panel**](#tab/controlpanel) ---- - -## Disable BitLocker - -Disabling BitLocker decrypts and removes any associated protectors from the volumes. Decryption should occur when protection is no longer required, and not as a troubleshooting step. - -Follow the instructions below to disable BitLocker, selecting the option that best suits your needs. - -#### [:::image type="icon" source="images/powershell.svg"::: **PowerShell**](#tab/powershell) - -Windows PowerShell offers the ability to decrypt multiple drives in one pass. In the example below, the user has three encrypted volumes, which they wish to decrypt. - -Using the Disable-BitLocker command, they can remove all protectors and encryption at the same time without the need for more commands. An example of this command is: - -```powershell -Disable-BitLocker -``` - -To avoid specifying each mount point individually, use the `-MountPoint` parameter in an array to sequence the same command into one line, without requiring additional user input. Example: - -```powershell -Disable-BitLocker -MountPoint E:,F:,G: -``` - -#### [:::image type="icon" source="images/cmd.svg"::: **Command Prompt**](#tab/cmd) - -Decryption with `manage-bde.exe` offers the advantage of not requiring user confirmation to start the process. Manage-bde uses the -off command to start the decryption process. A sample command for decryption is: - -```powershell -manage-bde.exe -off C: -``` - -This command disables protectors while it decrypts the volume and removes all protectors when decryption is complete. - -#### [:::image type="icon" source="images/controlpanel.svg"::: **Control Panel**](#tab/controlpanel) - -BitLocker decryption using the Control Panel is done using a wizard. After opening the BitLocker Control Panel applet, select the **Turn off BitLocker** option to begin the process. To proceed, select the confirmation dialog. With **Turn off BitLocker** confirmed, the drive decryption process begins. - -The Control Panel doesn't report decryption progress, but displays it in the notification area of the task bar. Selecting the notification area icon will open a modal dialog with progress. - -Once decryption is complete, the drive updates its status in the Control Panel and becomes available for encryption. - ---- - -