CmdID / PowerShell / Cmdlets / Get
Get-PfxCertificate
Gets information about PFX certificate files on the computer. PowerShell reference
From the PowerShell reference 2 parameters
What it does
Gets information about PFX certificate files on the computer. The Get-PfxCertificate cmdlet gets an object representing each specified PFX certificate file. A PFX file includes both the certificate and a private key.
Get-PfxCertificate [-FilePath] <String[]> [<CommonParameters>]Get-PfxCertificate -LiteralPath <String[]> [<CommonParameters>]
Get a PFX certificate
Get-PfxCertificate -FilePath "C:\windows\system32\Test.pfx"IdentifyGet a PFX certificate from a remote computer
Invoke-Command -ComputerName "Server01" -ScriptBlock {Get-PfxCertificate -FilePath "C:\Text\TestNoPassword.pfx"} -Authentication CredSSPIdentifyIts page in the reference: Get-PfxCertificate.
Parameters
-FilePathSpecifies the full path to the PFX file of the secured file. If you specify a value for this parameter, it is not necessary to type -FilePath at the command line.-LiteralPathThe full path to the PFX file of the secured file. Unlike FilePath, the value of the LiteralPath parameter is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters as escape sequences.