Requested template format is incorrect. -Template
parameter accepts template common name, not display name. Often (not always), common name is same as display name without spaces.
Installing IBCM Client Computer Certificate remotely using PowerShell
Hello All,
We are evaluating installation IBCM Client certificate on system remotely using powershell.
If we run the below command locally on the system. Its working fine.
Get-Certificate -Template "IBCM Client Certificate SHA2" -DnsName "computername.fqdn" -CertStoreLocation cert:\LocalMachine\My
However, if we run the below command remotely (from another system), we are getting below error.
$CompName = '<remote_computer_name>'
Invoke-Command -ComputerName $CompName -ScriptBlock {Get-Certificate -Template "IBCM Client Certificate SHA2" -DnsName "computername.fqdn" -CertStoreLocation "cert:\LocalMachine\My"}
CertEnroll::CX509Enrollment::InitializeFromTemplateName: The requested certificate template is not supported by this CA. 0x80094800 (-2146875392
CERTSRV_E_UNSUPPORTED_CERT_TYPE)
- CategoryInfo : NotSpecified: (:) [Get-Certificate], Exception
- FullyQualifiedErrorId : System.Exception,Microsoft.CertificateServices.Commands.GetCertificateCommand
- PSComputerName : <remote_computer_name>
Any idea where I am missing?
Or suggest any alternative to achieve the certificate enrollment.
Thanks and reagrds,
Kedar
1 answer
Sort by: Most helpful
-
Vadims Podāns 8,866 Reputation points MVP
2021-02-01T11:06:07.767+00:00