Answered by:
Get-CertificationAuthority is not working

Question
-
Hello,
I imported PSPKI and PKITools modules,
When try to run "Get-CertificationAuthority -Name myCAname, I get following error message:
Exception calling "EnumEnterpriseCAs" with "2" argument(s): "The system cannot find the file specified"
At C:\Program Files\WindowsPowerShell\Modules\PSPKI\3.4.1.0\Server\Get-CertificationAuthority.ps1:15 char:16
+ ... __NameSet" {[PKI.CertificateServices.CertificateAuthority]::EnumEnter ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Win32Exception
any thoughts?
Thanks
Wednesday, October 31, 2018 5:37 PM
Answers
-
During the setup of PSPKI you can choose several modules. Make sure that you have installed the Server module as Get-CertificationAuthority is part of the server component of PSPKI.
- Marked as answer by Maleki_bahram Monday, March 4, 2019 5:10 PM
Monday, March 4, 2019 10:39 AM
All replies
-
Hi,
Thanks for your question.
1. Try to run powershell as a administrator.
2. check your system version:
This cmdlet support:
Windows Server 2003 all editions
Windows Server 2008 all editions
Windows Server 2008 R2 all editions
Windows Server 2012 all editions
Windows Server 2012 R2 all editions
Windows Server 2016 all editions3.This command is not available in non-domain environments. This command requires installed Remote Server Administration Tools (RSAT).
4.
Get-CertificationAuthority
Try to returns all Enterprise Certification Authorities objects in current forest. check your Certification Authorities object with your CAname.
Best Regards,
Lee
Just do it.
Thursday, November 1, 2018 1:48 AM -
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
Best Regards,
Lee
Just do it.
Wednesday, November 7, 2018 9:53 AM -
No, still having the issue.Thursday, November 8, 2018 4:58 PM
-
im having the same issue, i have an internal CA on windows server 2012 R2, other commands works fine but get-certificationAuthority not
Thursday, November 8, 2018 6:32 PM -
During the setup of PSPKI you can choose several modules. Make sure that you have installed the Server module as Get-CertificationAuthority is part of the server component of PSPKI.
- Marked as answer by Maleki_bahram Monday, March 4, 2019 5:10 PM
Monday, March 4, 2019 10:39 AM -
ThanksMonday, March 4, 2019 5:10 PM