Powershell BitLocker Recovery Key
- by TheNoobofNoobs
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.