Remove-CATemplate

Remove-CATemplate is accessible with the help of adcsadministration module. To install adcsadministration on your system please refer to this link.

Synopsis
Removes the templates from the certification authority (CA) which were set for issuance of certificates.

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.

    Required?                    true
    Position?                    named
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Force <SwitchParameter>
    Forces the command to run without asking for user confirmation.

    Required?                    false
    Position?                    named
    Default value                
    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.

    Required?                    true
    Position?                    2
    Default value                
    Accept pipeline input?       true (ByValue, ByPropertyName)
    Accept wildcard characters?  false

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

-WhatIf <SwitchParameter>
    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

Syntax

Remove-CATemplate [-Name]  [-Force ] [-Confirm ] [-WhatIf ] []
Remove-CATemplate [-Force ] -AllTemplates  [-Confirm ] [-WhatIf ] []

————————– EXAMPLE 1 ————————–
C:\PS>Remove-CATemplate -AllTemplates
All the templates on the CA set for certificates issuance are removed.

————————– EXAMPLE 2 ————————–
C:\PS>Remove-CATemplate -Name “EFS”
The template named “EFS” on the CA that is set for certificate issuance is removed.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Remove-CATemplate
Remove-CATemplate powershell cmdlet command script

You can also read about
Add-CATemplate
Get-CATemplate

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *