Bitlocker Control functions
Posted: Fri May 09, 2025 2:05 pm
We are getting this error when attempting to remove a key Protector.
Removing Key Protector on drive [C] from [Agent Name]
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ImportSystemModules -ExecutionPolicy Bypass -command "$BLV = Get-BitLockerVolume -MountPoint C: ; Remove-BitLockerKeyProtector -MountPoint C: -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId "
Removal of Key Protector Failed with ->
Remove-BitLockerKeyProtector : Cannot validate argument on parameter 'KeyProtectorId'. The argument is null or empty.
Provide an argument that is not null or empty, and then try the command again.
At line:1 char:105
+ ... or -MountPoint C: -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-BitLockerKeyProtector], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Remove-BitLockerKeyProtector
Removing Key Protector on drive [C] from [Agent Name]
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ImportSystemModules -ExecutionPolicy Bypass -command "$BLV = Get-BitLockerVolume -MountPoint C: ; Remove-BitLockerKeyProtector -MountPoint C: -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId "
Removal of Key Protector Failed with ->
Remove-BitLockerKeyProtector : Cannot validate argument on parameter 'KeyProtectorId'. The argument is null or empty.
Provide an argument that is not null or empty, and then try the command again.
At line:1 char:105
+ ... or -MountPoint C: -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-BitLockerKeyProtector], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Remove-BitLockerKeyProtector