Get-CMClientCertificatePfx

Gets a client PFX certificate.

Syntax

Get-CMClientCertificatePfx
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-InputObject <IResultObject>]
   [-Thumbprint <String>]
   [-UserName <String>]
   [<CommonParameters>]

Description

The Get-CMClientCertificatePfx cmdlet gets a client Personal Information Exchange (PFX) certificate.

Examples

Example 1: Get a client PFX certificate

PS C:\> Get-CMClientCertificatePfx -UserName (Get-CMUser -Name "Contoso\Administrator").SMSID -Thumbprint  e1c2fff14282b61f79f78fbfca6721f0517ab767

This command gets the Pfx client certificate for the user named Administrator with the specified thumbprint.

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a PFX certificate profile object. To obtain a PFX certificate profile object, use the Get-CMCertificateProfilePfx cmdlet.

Type:IResultObject
Aliases:CertificateProfilePfx
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Thumbprint

Specifies the thumbprint of the client PFX certificate. If you do not specify this parameter, all certificates for the user are returned.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserName

Specifies the name of the user whose client PFX certificate you want to get. To get a value for this parameter, you can use the following command: (Get-CMUser -Name "Contoso\Administrator").SMSID.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject#SMS_ClientPfxCertificate