Installing certificates via batch file - possible?

Archived from groups: microsoft.public.windowsxp.general (More info?)

Hi

We have a couple of security certificates that need adding to a lot of
clients and we are contemplating many ways to do this. They are to be
imported into the:

Trusted Root Certification Authorities\Local Computer

and I'm wondering is there a silent batch file that can be tun to accomplish
what i want? i.e. something that could be put into the startup of some
clients?

Thank you for your time
1 answer Last reply
More about installing certificates batch file possible
  1. Archived from groups: microsoft.public.windowsxp.general (More info?)

    Danny wrote:

    > We have a couple of security certificates that need adding to a lot of
    > clients and we are contemplating many ways to do this. They are to be
    > imported into the:
    >
    > Trusted Root Certification Authorities\Local Computer
    >
    > and I'm wondering is there a silent batch file that can be tun to accomplish
    > what i want? i.e. something that could be put into the startup of some
    > clients?
    >
    > Thank you for your time
    Hi,

    You can use the command line utility certmgr.exe for this, a
    cryptoAPI/Authenticode tool from MS.

    To add a certificate to the "Trusted Root Certification Authorities"
    in localMachine:

    certmgr.exe -add -c "<cert-file>" -s -r localMachine root

    where <cert-file> is the path to the certificate file.


    Current users personal certificate store command line:
    http://groups.google.com/group/microsoft.public.windows.server.scripting/msg/4ac94c56ac6c7b67?dmode=source


    The download location for certmgr.exe at Microsoft have been removed,
    but you can use the one that is inside this zip file:
    http://myitforum.techtarget.com/inc/upload/6285cert.zip


    More information can be found here:

    Certificate Manager Tool (Certmgr.exe)
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfcertificatemanagertoolcertmgrexe.asp

    Using CertMgr
    http://msdn.microsoft.com/library/en-us/security/security/using_certmgr.asp


    --
    torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
    Administration scripting examples and an ONLINE version of
    the 1328 page Scripting Guide:
    http://www.microsoft.com/technet/scriptcenter/default.mspx
Ask a new question

Read More

Microsoft Certification Windows XP