Installing a cert

I’ve been trying to install a .cer file and getting a 9009 exit code (file not found)
I’ve made a bunch of iterations to the command and this is the latest that I have. Any input would be appreciated.

waithidden cmd.exe /c certutil.exe -addstore -f -enterprise root "{pathname of download folder}\xxxx.cer"

Try disabling 32-bit redirection by adding

action uses wow64 redirection false
Anywhere in the script before the ‘wait’ command.

Hi Jason, thanks for the reply. I added this and still no luck. The task completes but still exit code of 9009.

Here is an example from one of the fixlets.

waithidden {pathname of system folder & "\certutil.exe"} -addstore -f "Root" "{pathname of client folder of current site & "\__Download\MicrosoftRootCertificateAuthority2011.cer"}

This is what we use to install a cisco umbrella root cert and it works great. I think i had a similar issue with the 9009 error at first until i copied the cert to a local directory and spelled out the path instead of using {pathname of client …} substitution.

mkdir "c:\cert"
copy /Y “Cisco_Umbrella_Root_CA.cer” "c:\cert"
cmd.exe /C certutil -addstore -enterprise -f -v root “c:\cert\Cisco_Umbrella_Root_CA.cer”

1 Like