< Back

Get-TPMRecoveryInfo

Mon Jan 13, 2020 8:29 pm

NAME Get-TPMRecoveryInfo



SYNOPSIS

Automates the process on gathering BitLocker recovery password and TPM owner password.





SYNTAX

Get-TPMRecoveryInfo [[-ComputerName] <String>] [-PromptforCredentials] [[-OutputPath] <Object>]

[<CommonParameters>]





DESCRIPTION

This script will lookup multiple attribute in Active Directory and display the correlating

values that hold sensitive BitLocker information. Additionally, the TPM Owner Password

can be exported to a .tpm file, which can be used to make changes to the correlating machine.





PARAMETERS

-ComputerName <String>

Specifiy the computername to query Active Directory for the recovery password



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PromptforCredentials [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-OutputPath <Object>

Specify a path to output an XML file for each computer. This file can be used to reset TPM data in the OS.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





File Name : Get-TPMandBitlockerInfo.ps1

Author : Jack Stromberg (jackstromberg.com)

Prerequisite : PowerShell V2 over Vista and upper

Version History: 2/5/2015 (original release)

Version History: 8/2/2015 Updated to PSGallery and converted to module





RELATED LINKS

Script posted over at:

http://jackstromberg.com/2015/02/export ... ctory-via-

powershell/