[PKI.CertificateServices.CertificateAuthority]::GetCA("Name","*") doesn't work on 2012R2

May 5, 2016 at 4:04 PM
Either with name or * the class returns nothing.
Coordinator
May 5, 2016 at 4:12 PM
Can you provide more details about your environment?
May 5, 2016 at 4:35 PM
It's just a 2012R2 server that the commands don't work on.

I can use get-ca fine on my w7 machine and from a 2008 server.

Exception calling "GetCA" with "2" argument(s): "CCertConfig::GetField: The parameter is incorrect. 0x80070057 (WIN32:
87 ERROR_INVALID_PARAMETER)"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSPKI\Server\Get-CertificationAuthority.ps1:14 char:20
  • "__ComputerSet" {[PKI.CertificateServices.CertificateAuthority]::GetCA("Server ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentException
Coordinator
May 5, 2016 at 4:46 PM
I suspect that this issue is related to these issues: https://pspki.codeplex.com/workitem/93 and http://pspki.codeplex.com/workitem/89. Vote on them. I'll fix this in the next release.