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

New Comment on "Get-CATemplate"

$
0
0
v3.1 on 2012 Rs server - CA and AD on same machine. Played with Get-CATemplate and got this error: ============================================== PS C:\Windows\system32> Get-CertificationAuthority -Name W2K12-CA DisplayName ComputerName IsAccessible ServiceStatus Type ----------- ------------ ------------ ------------- ---- W2K12-CA w2k12-64.w2k12.com True Running Standalone Root CA PS C:\Windows\system32> Get-CertificationAuthority -Name W2K12-CA | Get-CATemplate New-Object : Exception calling ".ctor" with "1" argument(s): "Operation is not supported on this platform." At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\pspki\Server\Get-CATemplate.ps1:14 char:4 + New-Object PKI.CertificateServices.CATemplate -ArgumentList $CA + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand PS C:\Windows\system32> Get-CATemplate -CertificationAuthority W2K12-CA Get-CATemplate : Cannot process argument transformation on parameter 'CertificationAuthority'. Cannot convert value "W2K12-CA" to type "PKI.CertificateServices.CertificateAuthority[]". Error: "Cannot convert value "W2K12-CA" to type "PKI.CertificateServices.CertificateAuthority". Error: "Specified Certification Authority 'W2K12-CA' is unavailable."" At line:1 char:40 + Get-CATemplate -CertificationAuthority W2K12-CA + ~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-CATemplate], ParameterBindingArgumentTransformationException + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-CATemplate PS C:\Windows\system32> ====================================== What did I do wrong?

Viewing all articles
Browse latest Browse all 729

Trending Articles



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