Camelot wrote:
Windows Server 2012 R2 (Failing)
can you postThanks for taking this on, Camelot! I really appreciate it!$PSVersionTablecontents from failing and working machines?
What does sayConnect-CAcommand without parameters when you run it on CA server itself?
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 >