Installing IBCM Client Computer Certificate remotely using PowerShell

Kedar Tamboli 166 Reputation points
2021-02-01T10:59:39.39+00:00

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

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,721 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,360 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vadims Podāns 8,866 Reputation points MVP
    2021-02-01T11:06:07.767+00:00

    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.