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: if you open Certification Authority MMC (certsrv.msc) snap-in and expand Certificate Templates node, you will see at least one certificate template with red cross. When you delete certificate template from Active Directory (say, through Certificate Templates MMC) which is hosted on any CA server, CA will not remove it automatically.

Viewing all articles
Browse latest Browse all 729

Trending Articles



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