Command for exporting all certificates by template name in 2003 CA
what do you mean under "perform certificate count"?My weblog: http://en-us.sysadmins.lv PowerShell PKI Module: http://pspki.codeplex.com
July 14th, 2011 7:00am

On Thu, 14 Jul 2011 10:52:38 +0000, Vadims Podans [MVP] wrote: what do you mean under "perform certificate count"? He wants to know, given a specific certificate template, how many certificates have been issued based on that template. Paul Adare MVP - Identity Lifecycle Manager http://www.identit.ca Program: What commercials try to do to us.
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2011 7:15am

If you want to count the number of certificates from the previous example then just notice the summary of the output and look for the line indicating the number of total rows returned. here is a sample output from the command certutil -view -restrict "certificatetemplate=webserver" -out "requestid" Schema: Column Name Localized Name Type MaxLength ---------------------------- ---------------------------- ------ --------- RequestID Issued Request ID Long 4 -- Index ed Row 1: Issued Request ID: 0xe (14) Row 2: Issued Request ID: 0xf (15) Maximum Row Index: 2 2 Rows 2 Row Properties, Total Size = 8, Max Size = 4, Ave Size = 4 0 Request Attributes, Total Size = 0, Max Size = 0, Ave Size = 0 0 Certificate Extensions, Total Size = 0, Max Size = 0, Ave Size = 0 2 Total Fields, Total Size = 8, Max Size = 4, Ave Size = 4 CertUtil: -view command completed successfully. /Hasain
July 14th, 2011 7:20am

Thanks all. For large CA databases I remember reading somewhere on a limitation on the number of rows the tool can output which might be the only snag but we'll take a look using this method.
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2011 7:52am

Is anyone aware of command to export out all certificates by template name on a 2003 CA issuing server ? looking for the easiest method to export out all certificates issued by a specific template including failed requests and those that have been revoked.
July 14th, 2011 11:50am

try the command: certutil -view -restrict "certificatetemplate=webserver" /Hasain
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2011 12:45pm

Thanks Hasain. Don't suppose you know if there is a command to perform a certificate count based on template ?
July 14th, 2011 1:08pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics