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

Popular posts from this blog

Cisco VRF-Lite Guest Network and OpenDNS

Work Folders, Folder Redirection, Symbolic Links, Oh My!

Ansible: Good Things Come to Those Who Wait