Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Export Bitlocker ActiveDirectory
- $Result = Get-ADObject -Filter {objectclass -eq 'msFVE-RecoveryInformation'} -Properties msFVE-RecoveryPassword |
- Select-Object @{n="Computername";e={$_.DistinguishedName.Split(",")[1].Replace("CN=","")} }, `
- @{Name="Datum";Expression={[datetime]::Parse($($_.Name.Split("+,")[0]))}}, `
- @{n="Kennwort-ID";e={$_.DistinguishedName.Split("{")[1].Split("}")[0]} } , `
- msFVE-RecoveryPassword | Sort-Object Computername, Datum -Descending
- #Searchmask
- $Result | Out-GridView -PassThru
- #Export
- $Result | Export-CSV -Path C:\Bitlocker.csv -Delimiter ";" -Encoding UTF8 -NoTypeInformation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement