Quantcast
Channel: Public Key Infrastructure PowerShell module
Viewing all articles
Browse latest Browse all 729

New Post: Cannot convert value "ca.example.com" to type "PKI.CertificateServices.CertificateAuthority"

$
0
0
Camelot wrote:
can you post $PSVersionTable contents from failing and working machines?

What does say Connect-CA command without parameters when you run it on CA server itself?
Thanks for taking this on, Camelot! I really appreciate it!

Windows Server 2012 R2 (Failing)
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS > Import-Module PsPKI
PS > $PSVersionTable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.34209
BuildVersion                   6.3.9600.17400
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2


PS > Connect-CertificationAuthority
New-Object : Exception calling ".ctor" with "1" argument(s): "There is no such object on the server.
"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PsPKI\Server\Connect-CertificationAuthority.ps1:13 char:4
+             New-Object PKI.CertificateServices.CertificateAuthority $CName
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

PS > Connect-CertificationAuthority -ComputerName ca.example.com
New-Object : Exception calling ".ctor" with "1" argument(s): "There is no such object on the server.
"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PsPKI\Server\Connect-CertificationAuthority.ps1:13 char:4
+             New-Object PKI.CertificateServices.CertificateAuthority $CName
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

PS >
Windows 7 SP1 (Working)
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.

PS > Import-Module PsPKI
PS > $PSVersionTable

Name                           Value
----                           -----
PSVersion                      3.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.18444
BuildVersion                   6.2.9200.16481
PSCompatibleVersions           {1.0, 2.0, 3.0}
PSRemotingProtocolVersion      2.2


PS > Connect-CertificationAuthority
New-Object : Exception calling ".ctor" with "1" argument(s): "The system cannot find the file specified"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PsPKI\Server\Connect-CertificationAuthority.ps1:13 char:4
+             New-Object PKI.CertificateServices.CertificateAuthority $CName
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

PS > Connect-CertificationAuthority -ComputerName ca.example.com

DisplayName                              ComputerName   IsAccessible ServiceStatus Type
-----------                              ------------   ------------ ------------- ----
ORG                                      ca.example.com True         Running       Standalone Root CA


PS >

Viewing all articles
Browse latest Browse all 729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>