-
Notifications
You must be signed in to change notification settings - Fork 31
AdcsTemplate
dscbot edited this page Jun 1, 2024
·
3 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | Specifies the name of the CA template | |
Ensure | Write | String | Specifies whether the CA Template should be added or removed. |
Present , Absent
|
This resource can be used to add or remove Certificate Authority templates
from an Enterprise CA.
Using this DSC Resource assumes that the ADCS-Cert-Authority
feature
and the AdcsCertificationAuthority
resource have been installed with
a CAType
of EnterpriseRootCA
or EnterpriseSubordinateCA
.
This example will add the KerberosAuthentication CA Template to the server.
Configuration AdcsTemplate_AddTemplate_Config
{
Import-DscResource -Module ActiveDirectoryCSDsc
Node localhost
{
AdcsTemplate KerberosAuthentication
{
Name = 'KerberosAuthentication'
Ensure = 'Present'
}
}
}
This example will remove the DomainController CA Template from the server.
Configuration AdcsTemplate_RemoveTemplate_Config
{
Import-DscResource -Module ActiveDirectoryCSDsc
Node localhost
{
AdcsTemplate DomainController
{
Name = 'DomainController'
Ensure = 'Absent'
}
}
}