From b90e211db16b8161c4b180e847936a35d79e6329 Mon Sep 17 00:00:00 2001 From: RicardusLeo <7106244+d0rag0n@users.noreply.github.com> Date: Wed, 16 Apr 2025 10:37:35 +0200 Subject: [PATCH] Update BackupToAAD-BitLockerKeyProtector.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assuming that the RecoveryPassword protector type is always at index 1 in the array can lead to inconsistent results—I experienced this just yesterday. It's better to explicitly select the correct protector type rather than relying on it always being at index 1. On one system I worked on, it was actually at index 0, which is why I'm making this suggestion. --- .../bitlocker/BackupToAAD-BitLockerKeyProtector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docset/winserver2025-ps/bitlocker/BackupToAAD-BitLockerKeyProtector.md b/docset/winserver2025-ps/bitlocker/BackupToAAD-BitLockerKeyProtector.md index c0685321c2..60a72340df 100644 --- a/docset/winserver2025-ps/bitlocker/BackupToAAD-BitLockerKeyProtector.md +++ b/docset/winserver2025-ps/bitlocker/BackupToAAD-BitLockerKeyProtector.md @@ -24,7 +24,7 @@ The **BackupToAAD-BitLockerKeyProtector** cmdlet saves a recovery password key p ### Example 1 ```powershell PS C:\> $BLV = Get-BitLockerVolume -MountPoint "C:" -PS C:\> BackupToAAD-BitLockerKeyProtector -MountPoint "C:" -KeyProtectorId $BLV.KeyProtector[1].KeyProtectorId +PS C:\> BackupToAAD-BitLockerKeyProtector -MountPoint "C:" -KeyProtectorId ($BLV.KeyProtector | Where-Object {$_.KeyProtectorType -eq "RecoveryPassword" }).KeyProtectorId ```