Remove-CATemplate
Remove-CATemplate
Removes the templates from the certification authority (CA) which were set for issuance of certificates.
Syntax
Parameter Set: Default
Remove-CATemplate [-Name] <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: AllTemplates
Remove-CATemplate -AllTemplates [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-CATemplate cmdlet removes the templates from the certification authority (CA) which were set for issuance of certificates.
Parameters
-AllTemplates
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.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Force
Forces the command to run without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Removes an individual certificate template from the CA that is available for certificate issuance. Be sure to use the certificate template name and not the certificate template display name. For example, the certificate template display name of Basic EFS is assigned the template name EFS.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- System.String
Outputs
The output type is the type of the objects that the cmdlet emits.
- None
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
All the templates on the CA set for certificates issuance are removed.
C:\PS>Remove-CATemplate -AllTemplates
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
The template named "EFS" on the CA that is set for certificate issuance is removed.
C:\PS>Remove-CATemplate -Name "EFS"