Showing posts with label BitLocker. Show all posts
Showing posts with label BitLocker. Show all posts

Friday, February 14, 2020

How to view BitLocker Recovery Key in PowerShell


Installtion

PS> Install-Module -Name ActiveDirectory.Toolbox


Usage

PS> Import-Module ActiveDirectory.Toolbox



Commands

Get-ADComputerBitLockerInfo [[-ComputerName] <string[]>]

or

Get-ADComputerBitLocker [[-ComputerName] <string[]>]

Note:
#Requires -Modules ActiveDirectory

Wednesday, July 11, 2018

PowerShell Script: Get BitLocker Recovery Information from Active Directory

A small script for export Computers BitLocker Recovery Information from Active Directory to csv file.
This script generates a CSV file with computer names and BitLocker Recovery Keys:
    ComputerName;OperatingSystem;Date;Time;GMT;PasswordID;RecoveryPassword;DistinguishedName
Requirement of the script:
    - Active Directory PowerShell Module
    - Needed rights to view AD BitLocker Recovery Info

Example of usage:

[PS].\Get-ADComputers-BitLockerInfo.ps1
[PS].\Get-ADComputers-BitLockerInfo.ps1 -OU "OU=Computers,OU=IT Department,DC=myDomain,DC=com"