Powershell BitLocker Recovery Key
Posted
by
TheNoobofNoobs
on Server Fault
See other posts from Server Fault
or by TheNoobofNoobs
Published on 2014-06-04T19:25:10Z
Indexed on
2014/06/04
21:28 UTC
Read the original article
Hit count: 339
I'm trying to get a list of all computers that have a bit locker recovery key (or information for that matter) populated in their respective fields in AD. I am unable to even start on a script as I don't know where to begin. I did find this online but it doesn't appear to be working.
foreach($comp in get-adcomputer -filter *)
{
get-adobject -filter 'objectclass -eq "msFVE-RecoveryInformation"' - searchbase $comp.distinguishedname -properties msfve-recoverypassword,whencreated | sort whencreated | select msfve-recoverypassword -last 1
}
Export-Csv "FilePath.csv"
Any ideas as to how I can go about this. Running Windows 7, Powershell 3.0, Windows Server 2008 R2.
© Server Fault or respective owner