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