Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Remove-CATemplate

Last Updated: 3/26/2017

SYNOPSIS

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

SYNTAX

Default (Default)

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

AllTemplates

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
Parameter Sets: AllTemplates
Aliases: 

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
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
Parameter Sets: Default
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

None

NOTES

Add-CATemplate

Get-CATemplate

© 2017 Microsoft