Share via

Installing IBCM Client Computer Certificate remotely using PowerShell

Kedar Tamboli 171 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 for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Server | Devices and deployment | Configure application groups
0 comments No comments

1 answer

Sort by: Most helpful
  1. Vadims Podāns 9,266 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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.