Appear to be an error with Get-CertificateTemplate when the DisplayName of the Template include / character

Jun 9, 2015 at 10:22 AM
Hello

I note then using Get-CertifcateTemplate it throws an error if the DisplayName of the template includes the / character

the error it throws is

New-Object : Exception calling ".ctor" with "1" argument(s): "Unknown error (0x80005000)"
At C:\Program Files\Sysadmins LV\PowerShell\Modules\pspki\Server\Get-CertificateTemplate.ps1:67 char:48
  • $vtemps | Where-Object {$_} | ForEach-Object {New-Object PKI.CertificateTemplat ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
People (not me) have created a number of templates whose displayname includes /

Thanks
Ernie
Coordinator
Jun 9, 2015 at 3:39 PM
can you show full invocation line?
Coordinator
Jun 9, 2015 at 4:29 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Jun 9, 2015 at 5:16 PM
I fixed this issue (and possible related) in the internal build.

thanks for report!
Jun 10, 2015 at 6:10 AM
Thanks very much again V all the best
I will download the new build when ready (unless already uploaded, will take a look later today)
Ernie