Import-CMCertificate

Imports a certificate.

Syntax

Import-CMCertificate
      [-Path] <String>
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-PassThru]
      [-WhatIf]
      [<CommonParameters>]
Import-CMCertificate [-X509Certificate]  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-PassThru] [-WhatIf] []

Description

The Import-CMCertificate cmdlet imports a public key infrastructure (PKI) certificate to Microsoft System Center Configuration Manager.

Examples

Example 1: Import a certificate

PS C:\>Import-CMCertificate -Path "\\Contoso01\CM\Certficates\BaseCert.txt"

This command imports the PKI certificate from the file named BaseCert.

Required Parameters

-Path

Specifies a certification path.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-X509Certificate
Type:X509Certificate
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
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
-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