Using Certutil to export information for a specify template to csv file

Tung Le 6 Reputation points
2022-10-17T08:31:10.44+00:00

I've followed this article https://social.technet.microsoft.com/Forums/Lync/en-US/03639647-1912-4bdc-94c8-c840604adc5c/using-certutil-to-export-information-for-a-specific-template?forum=winserversecurity but it does not work

The goal is export the certificate in issued certificates tab for a specify template (can enter either Templatename or Template ID) and save it into the csv file.

Can anyone can help me ?

The issuses I got when trying with the article are:

CertUtil: -view command FAILED: 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)
CertUtil: The parameter is incorrect.

Thanks for your reading.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,561 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,885 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,221 Reputation points
    2022-10-17T08:41:39.437+00:00

    Hi @Tung Le ,

    You can try PowerShell script to export the templates - export-and-import-certificate-templates-with-powershell.aspx , import the PKI module as per the steps and try to export the templates.
    or try this command from administrator cmd - Certutil –catemplates > C:\Backup\CATemplates.csv

    disaster-recovery-procedures-for-active-directory-certificate-services-adcs

    Hope this helps.
    JS

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Tung Le 6 Reputation points
    2022-10-17T08:48:07.94+00:00

    Hi @JimmySalian-2011 thanks for your prompt reply. I mean. I want to export the certificate in Issued Certificate and can select for specify template only not for all of certificates by using PowerShell.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.