Distributing Certificates via Bat or Exe file

Kaan Özkordağ/ April 9, 2014

You can distribute the bat or exe file which is created with the batch command below via Active Directory

@echo off

certutil -addstore -f -enterprise -user root %temp%\Cert-RootCA.cer > NUL

certutil -addstore -f -enterprise -user root %temp%\Cert-SubCA.cer > NUL

del /F %tmp%\Cert-RootCA.cer > NUL

del /F %tmp%\Cert-SubCA.cer > NUL

del /F %tmp%\installcert.bat > NUL

 

Please follow and like us:

1 Comment

  1. Hi there! This post couldn’t be written any better! Going through this article reminds me of my previous roommate! He constantly kept preaching about this. I most certainly will send this information to him. Pretty sure he’s going to have a very good read. Many thanks for sharing!

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*