willpantin Posted October 3, 2004 Posted October 3, 2004 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)
willpantin Posted October 16, 2004 Author Posted October 16, 2004 Hmm...Still no answers...? I will give up on this one, I guess...
willpantin Posted May 8, 2006 Author Posted May 8, 2006 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...!
Maelstorm Posted May 21, 2006 Posted May 21, 2006 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)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now