Sign in with
Sign up | Sign in
Your question

Installing certificates via batch file - possible?

Last response: in Windows XP
Share
September 6, 2005 8:18:03 AM

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
Anonymous
September 6, 2005 6:47:48 PM

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...


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=/libr...

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





--
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.m...
Related resources
!