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

Commented Unassigned: get-catemplate [88]

$
0
0
Version 3.1

When running the following command

get-ca |get-catemplate

I get the following errror:

```
New-Object : Exception calling ".ctor" with "1" argument(s): "There is no such object on the server.
"
At D:\scripts\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
```

The get-ca command returns my CA with no issues, so I am sure I am passing the right object to get-catemplate.
Comments: It looks like attaching it is not an option right now so here's the output with template names changed: ``` Template1 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.9300722.8738789 Template2 Template3 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.11423424.9810665 Template4 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.11648947.4276653 Template5 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.10330140.2643807 Template6 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.230760.14733575 Template7 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.12004424.7261268 Template8 1.3.6.1.4.1.311.21.8.1238327.4856643.6637957.11962243.4469758.62.7699259.11536304 ```

Viewing all articles
Browse latest Browse all 729

Trending Articles



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