Removes certificate template from Active Directory.
Remove-CertificateTemplate [-Template] <CertificateTemplate> [<CommonParameters>]
Removes certificate template from Active Directory.
Note: in order to remove certificate template objects, you must be granted for Enterprise Admins permissions or delegated permissions on 'Certificate Templates' and 'OID' Active Directory containers.
Specifies certificate template object to remove. This object can be obtained by running Get-CertificateTemplate command.
Required? | True |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
PKI.CertificateTemplates.CertificateTemplate
None.
Author: Vadims Podans
Blog: https://www.sysadmins.lv
PS C:\> Get-CertificateTemplate "Temp Template" | Remove-CertificateTemplate
Removes certificate template with display name 'TempTemplate' from Active Directory.