
The beneath PowerShell can be utilized to extract LAPS Passwords and BitLocker Keys from Lively Listing. This was written on Friday, July 19, 2024, as a result of CrowdStrike Outage: https://www.nytimes.com/2024/07/19/enterprise/microsoft-outage-cause-azure-crowdstrike.html. Should you select to check this PowerShell, be sure that you replace the argument for the SearchBase parameter to replicate your Lively Listing area.
perform Get-LapsAndBitLocker {
# Model 1.0.1
Get-ADObject -Filter {objectclass -eq 'msFVE-RecoveryInformation'} -SearchBase 'DC=area,DC=com' -Properties msFVE-RecoveryPassword |
Choose-Object -Property `
@{N='ComputerName';E={$_.DistinguishedName.Cut up(',')[1].Cut up('=')[1]}},
@{N='LapsPassword';E={(Get-ADComputer -Id ($_.DistinguishedName.Cut up(',')[1].Cut up('=')[1]) -Properties ms-Mcs-AdmPwd).'ms-Mcs-AdmPwd'}},
@{N='DateTime' ;E={Get-Date -Date ($_.DistinguishedName.Cut up(',')[0].Cut up('{')[0].Cut up('=')[-1])}},
@{N='BitLocker' ;E={$_.'msFVE-RecoveryPassword'}} |
Type-Object -Property ComputerName
} # finish perform: Get-LapsAndBitLocker.

