/build/static/layout/Breadcrumb_cap_w.png

Installing Root Certificate via Script (kscript)

Trying to install a certificate into the root certificates. My bat file runs perfectly locally on the PC, when when done through kscript, no dice. Here's the working bat file:

@echo off
 certutil -f -addstore "Root" C:\CERT.cer
 exit

Also tried uploading the cert.cer to the dependency directory and on success launch a bat file like this:

@echo off
 certutil -f -addstore "Root" $(KACE_DEPENDENCY_DIR)\cert.cer
 exit

Also tried on success launch a program:

Directory: C:\windows\system32

File: certutil.exe

Parameters: certutil -f -addstore "Root" $(KACE_DEPENDENCY_DIR)\cert.cer

All versions say successful yet nothing happens. The only way I've gotten it to work was running the bat file with cert.cer file located in the C:\ drive. Whats going on?? Thanks


2 Comments   [ + ] Show comments
  • Is your kscript running as the locally logged on user or as the local system? - htomlinson 9 years ago
  • local system - but even if it was local user, I was the local user with admin rights anyway... - mazostyle 9 years ago

Answers (1)

Posted by: mazostyle 9 years ago
Purple Belt
0

got it, a little workaround, but it works. Just used this bat file

@echo off
xcopy cert.cer C:\
start /wait certutil -addstore Root cert.cer
del C:\cert.cer
exit

Works. Yay!

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ