October 3, 200421 yr I would like to have my "Trusted Publishers' Certificates" in IE unattended.I know about the export function, but then is there a way to import these files in an unattended fashion? (CER extension)I am talking about trusted certificates that are found in:Internet Explorer, Tools, Internet Options, "Content" tab, Trusted PublishersThanks for any help! B)
May 8, 200620 yr Author Nearly two years have passed since I asked this question, maybe someone out there now knows how to include the "Trusted Publishers' Certificates" in an Unattended install...?It would be helpful, as not everyone knows which companies or publishers are safe to allow on the computer, and are needed for their purposes...Thanks for any enlightment on this subject...!
May 21, 200620 yr You will need a program called certmgr.exe to do this. This file can be found in this post. It can also be found in the Windows XP Platform SDK which is available for download from Microsoft's website. But, to install a root certificate from the command line, use the following:certmgr -add cacert.cer -s ROOT -allBecasue you are installing a trusted root certification authority, a window will popup asking you if you are sure about doing this. Below is a AutoIT3 script that will take care of the window. You can get AutoIT3 from http://www.autoitscript.com/autoit3/; AutoIT Parameters#NoTrayIconAutoITSetOption("MustDeclareVars", 1)AutoItSetOption("RunErrorsFatal", 0); Operational Constantsconst $WinTitle = "Security Warning"const $WinText = "You are about to install a certificate"const $WinCtrl = 6const $FileName = "cacert.cer"; Variablesdim $rdim $e; Program Function$e = 0Run("CertMgr.exe -add " & $FileName & " -s ROOT -all")if @error = 0 then $r = WinWait($WinTitle, $WinText, 30) if $r = 1 then WinActivate($WinTitle, $WinText) ControlClick($WinTitle, $WinText, $WinCtrl, "left", 1) else $e = 1 endifelse $e = 1endifexit($e)
Create an account or sign in to comment