Get-PfxCertificate - PowerShell


 

Gets information about .pfx certificate files on the computer. (Get-PfxCertificate)

   

# NAME
Get-PfxCertificate

# SYNOPSIS
Gets information about .pfx certificate files on the computer.

# SYNTAX
Get-PfxCertificate [-FilePath] <string[]> [<CommonParameters>]

# DESCRIPTION
The Get-PfxCertificate cmdlet gets an object representing each specified .pfx certificate file. A .pfx file includes both the certificate and a private key.

# PARAMETERS
-FilePath <string[]>
The full path to the .pfx file of the secured file. The parameter name ("FilePath") is optional.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
System.String
You can pipe a string that contains a file path to Get-PfxCertificate.

# OUTPUTS
System.Security.Cryptography.X509Certificates
Get-PfxCertificate returns an object for each certificate that it gets.

# NOTES

When using the Invoke-Command cmdlet to run a Get-PfxCertificate command remotely, and the .pfx certificate file is not password protected, the value of the Authentication parameter of Invoke-Command must be "CredSSP".

# EXAMPLE 1

C:\PS>get-pfxcertificate -filepath C:\windows\system32\Test.pfx

Password: ******
Signer Certificate: Matt Berg (Self Certificate)
Time Certificate:
Time Stamp:
Path: C:\windows\system32\zap.pfx

# Description
-----------
This command gets information about the Test.pfx certificate on the system.

# EXAMPLE 2

C:\PS>invoke-command -computername Server01 -scriptblock {get-pfxcertificate -filepath C:\Text\TestNoPassword.pfx} -authentication CredSSP

# Description
-----------
This command gets a .pfx certificate file from the Server01 remote computer. It uses the Invoke-Command to run a Get-PfxCertificate command remotely.

When the .pfx certificate file is not password-protected, the value of the Authentication parameter of Invoke-Command must be "CredSSP".

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=113323
Get-AuthenticodeSignature
Set-AuthenticodeSignature
about_Signing

C:\Windows>powershell get-help Get-Credential -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Gets information about .pfx certificate files on the computer.

HTTP: ... PS_Windows/en/Get-PfxCertificate.htm
0.156
13919

Restore the location of the default profile folder on Windows 10!

 /

USB Stick überprüfen bei Windows-7, wie geht das?

 /

Right Practically the short benchmark the Fastest test for SSD, HD, USB, ...!

 /

Windows 10: shell:common startup!

 /

Unnötigen Dateien in Windows 10 löschen mit Hilfe der Datenträgerbereinigung!

 /

How does resurrecting pixels work with Is-My-LCD-OK?

 /

Reboot und Löschen ohne Abfrage, was macht der File Unlocker dann?

 /

Windows 10 is getting slower, why?

 /

Summer time and winter time make time stamp corrections for files and directorys!

 /

Shortcut to Manage Wireless Networks on Windows-10!

 /

Windows 10 desktop icons are so big, why, how to change this?

 /

Does Don't Sleep change the power saving options on the system?

 /