Site icon TOSS

Add-CATemplate

powershell

Add-CATemplate is accessible with the help of adcsadministration module.

Synopsis
Adds a certificate template to the CA.

Description
The Add-CATemplate cmdlet adds a certificate template to the CA for issuing.

A certificate template is a preconfigured list of certificate settings that allows users and computers to enroll for certificates without having to create complex certificate requests. Certificate templates allow for the customization of a certificate that can be issued by the CA. The template defines items such as the cryptographic types, validity and renewal periods, and certificate purposes.

The certificate templates are stored in Active Directory Domain Services (AD DS). Many default certificate templates are added to AD DS when the CA role service is installed. The Add-CATemplate cmdlet does not allow you to create new templates or duplicate existing templates.

Parameters

-Force 
    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>
    Specifies the name of a certificate template name. This name must always be the template name (short name without spaces) and not the template display name. For example, the certificate template with the template display name of Exchange Enrollment Agent (Offline request) must be specified by its template name, which is EnrollmentAgentOffline.

    Required?                    true
    Position?                    2
    Default value                none
    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
Add-CATemplate [-Name] [-Force ] [-Confirm ] [-WhatIf ] []

Notes
To perform this procedure, you must be a member of the Domain Admins group or the Enterprise Admins group in Active Directory Domain Services (AD DS), or you must have been delegated the appropriate authority. As a security best practice, consider using Run as to perform this procedure.

————————– EXAMPLE 1 ————————–
C:\PS>Add-CATemplate -Name EFS

Adds a CA template with the template display name Basic EFS and the template name EFS.

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

Get-Command Add-CATemplate

You can also read about
Get-CATemplate
Remove-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 official Microsoft websites

Exit mobile version