Remove-CATemplate
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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
AllTemplates
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Default
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.