Import-CMClientCertificatePfx

Imports a client PFX certificate.

Syntax

Import-CMClientCertificatePfx
      -CertificateProfilePfx <IResultObject>
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-PassThru]
      [-Password <SecureString>]
      -Path <String>
      -UserName <String>
      [-WhatIf]
      [<CommonParameters>]

Description

The Import-CMClientCertificatePfx cmdlet imports a client Personal Information Exchange (PFX) certificate to a site server.

Examples

Example 1: Import a client PFX certificate

PS C:\> Import-CMClientCertificatePfx -Path "\\server\ShareFolder\test.pfx" -UserName (Get-CMUser -Name "Contoso\Administrator").SMSID -Password (ConvertTo-SecureString -String "sccm" -AsPlainText -Force) -CertificateProfilePfx (Get-CMCertificateProfilePfx -Name "CertTest" -Fast )

This command imports a client PFX certificate for the user named administrator.

Required Parameters

-CertificateProfilePfx

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

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

Specifies the path of the client PFX certificate.

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

Specifies the user that the imported PFX certificate targets. To get the user value, you can use the following command: (get-cmuser -name domain\username).SMSID.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-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
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

Specifies, as a secure string, the password that allows access to the imported PFX certificate.

Type:SecureString
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject#SMS_ClientPfxCertificate