Remove-CATemplate

Removes the templates from the CA which were set for issuance of certificates.

Syntax

Remove-CATemplate
      [-Name] <String>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CATemplate
      [-AllTemplates]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-CATemplate cmdlet removes the templates from the certification authority (CA) which were set for issuance of certificates.

Examples

Example 1: Remove all templates on the CA

PS C:\> Remove-CATemplate -AllTemplates

This command removes all the templates on the CA set for certificates issuance are removed.

Example 2: Remove a specific CA

PS C:\> Remove-CATemplate -Name "EFS"

This command removes the template named EFS on the CA that is set for certificate issuance is removed.

Parameters

-AllTemplates

Indicates that the cmdlet removes all certificate templates on the CA that are available for certificate issuance. A common task administrative task is to remove all the default templates that are currently added for issuance. This allows the administrator to add only the templates that should be available for certificate issuance in the given scenario.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Force

Forces the command to run without asking for user confirmation.

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

-Name

Specifies the name of an individual certificate template from the CA that is available for certificate issuance that this cmdlet removes. You need to use the certificate template name and not the certificate template display name. For instance, the certificate template display name of Basic EFS is assigned the template name EFS.

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

-WhatIf

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

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

Inputs

String

Outputs

Object