Get BitLockerVolume - PowerShell
Overview
Get-BitLockerVolume retrieves information about BitLocker-protected volumes on the local or remote computer. It displays details such as encryption status, volume size, and key protector configuration.
Syntax
Get-BitLockerVolume [-MountPoint] <String> [-Volume] <String> [-ComputerName] <String> [-Filter] <String> [CommonParameters]
Options/Flags
- -MountPoint: Specifies the mount point or drive letter of the BitLocker-protected volume.
- -Volume: Specifies the volume name or GUID of the BitLocker-protected volume.
- -ComputerName: Specifies the name of the remote computer where the BitLocker-protected volume is located.
- -Filter: Filters the results based on the specified condition.
Examples
Example 1: Get information about all BitLocker-protected volumes
Get-BitLockerVolume
Example 2: Get information about a specific BitLocker-protected volume by mount point
Get-BitLockerVolume -MountPoint "C:"
Example 3: Get information about BitLocker-protected volumes on a remote computer
Get-BitLockerVolume -ComputerName "Server01"
Common Issues
- Error: The drive is not BitLocker-protected: The specified drive is not encrypted with BitLocker.
- Error: The drive is not available: The specified drive is not accessible, e.g., it may be offline or disconnected.
Integration
Get-BitLockerVolume can be combined with other PowerShell commands to perform advanced tasks:
- Export BitLocker recovery key:
Export-BitLockerRecoveryKey -Volume (Get-BitLockerVolume -MountPoint "C:")
- Suspend BitLocker protection:
Suspend-BitLocker -Volume (Get-BitLockerVolume -MountPoint "D:")
Related Commands
- Enable-BitLocker: Enables BitLocker encryption on a volume.
- Disable-BitLocker: Disables BitLocker encryption on a volume.
- Manage-bde: Command-line tool for managing BitLocker encryption.