Bitlocker Recovery Key Backup to AD
A little powershell computer startup script to backup bitlocker recovery keys to AD. Wanted to see if I could make it work without hard coding drive letters.
$BLVOL = Get-BitlockerVolume | Where ProtectionStatus -eq "On" | Foreach { New-Object PsObject -Property @{ MP = $_.MountPoint KPID = ($_ | Select -ExpandProperty KeyProtector | Where KeyProtectorType -eq "RecoveryPassword").KeyProtectorId ;} } $BLVOL | Foreach {Backup-BitlockerKeyProtector $_.MP $_.KPID}
Comments
Post a Comment