03 April 2021

Backup existing BitLocker keys to Active Directory

$bdeProtector = manage-bde -protectors -get C: -type RecoveryPassword

$keyID = [Regex]::Matches($bdeProtector, '(?<={)(.*?)(?=})') | Select -ExpandProperty Value

foreach ($key in $keyID) {
manage-bde -protectors -adbackup C: -id "{$key}"
}

No comments:

Post a Comment