{"id":70773,"date":"2004-12-20T11:11:00","date_gmt":"2004-12-20T11:11:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2004\/12\/20\/how-can-i-return-a-list-of-downloaded-controls-and-applets-for-internet-explorer\/"},"modified":"2004-12-20T11:11:00","modified_gmt":"2004-12-20T11:11:00","slug":"how-can-i-return-a-list-of-downloaded-controls-and-applets-for-internet-explorer","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/how-can-i-return-a-list-of-downloaded-controls-and-applets-for-internet-explorer\/","title":{"rendered":"How Can I Return a List of Downloaded Controls and Applets for Internet Explorer?"},"content":{"rendered":"<p><IMG class=\"nearGraphic\" title=\"Hey, Scripting Guy! Question\" border=\"0\" alt=\"Hey, Scripting Guy! Question\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" width=\"34\" height=\"34\"> \n<P>Hey, Scripting Guy! Is there an easy way to find out what programs have been downloaded for Internet Explorer (the items that are in the folder C:\\Windows\\Downloaded Program Files)? I can use a script to get the executable file names and dependent files, but I\u2019d like to be able to get the names as they are shown in the folder itself.<BR><BR>&#8212; AC<\/P><IMG border=\"0\" alt=\"Spacer\" src=\"https:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/05\/spacer.gif\" width=\"5\" height=\"5\"><IMG class=\"nearGraphic\" title=\"Hey, Scripting Guy! Answer\" border=\"0\" alt=\"Hey, Scripting Guy! Answer\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" width=\"34\" height=\"34\"><A href=\"http:\/\/go.microsoft.com\/fwlink\/?linkid=68779&amp;clcid=0x409\"><IMG class=\"farGraphic\" title=\"Script Center\" border=\"0\" alt=\"Script Center\" align=\"right\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/ad.jpg\" width=\"120\" height=\"288\"><\/A> \n<P>Hey, AC. When you download ActiveX controls or Java applets, these items are typically placed in the Downloaded Program Files folder. You can view these items in Windows Explorer, or you can view them from within Internet Explorer. (Click <B>Internet Options<\/B> and then, on the <B>General<\/B> tab, click <B>Settings<\/B>. In the <B>Settings<\/B> dialog box, click <B>View Objects<\/B>.) <\/P>\n<P>When you look at the folder contents using Windows Explorer, you see friendly names like <B>MSN File Upload Control<\/B>. However, if you use the dir command or use, say, a FileSystemObject script to access the folder you see executable file names like <B>MsnUpld.cab<\/B>. You\u2019d like to be able to use a script to return those friendly names you see in Windows Explorer.<\/P>\n<P>So how do you do that? Why you use this script, of course:<\/P><PRE class=\"codeSample\">strComputer = &#8220;.&#8221;\nSet objWMIService = GetObject(&#8220;winmgmts:\\\\&#8221; &amp; strComputer &amp; _\n    &#8220;\\root\\cimv2\\Applications\\MicrosoftIE&#8221;)<\/p>\n<p>Set colIESettings = objWMIService.ExecQuery _\n    (&#8220;Select * from MicrosoftIE_Object&#8221;)<\/p>\n<p>For Each strIESetting in colIESettings\n    Wscript.Echo &#8220;Code base: &#8221; &amp; strIESetting.CodeBase\n    Wscript.Echo &#8220;Program file: &#8221; &amp; strIESetting.ProgramFile\n    Wscript.Echo &#8220;Status: &#8221; &amp; strIESetting.Status\n    Wscript.Echo\nNext\n<\/PRE>\n<P>This script relies on a class &#8211; MicrosoftIE_Object &#8211; and a namespace &#8212; root\\cimv2\\Applications\\MicrosoftIE &#8211; that, as far as we know, have never been documented. But it seems to do the job; run the script and you\u2019ll get output similar to this:<\/P><PRE class=\"codeSample\">Code base: http:\/\/sc.groups.msn.com\/controls\/FileUC\/MsnUpld.cab\nProgram file: MSN File Upload Control\nStatus: Installed\n<\/PRE>\n<P>As you can see, the <B>ProgramFile<\/B> property gives you the friendly name as shown in the Downloaded Program Files folder.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, Scripting Guy! Is there an easy way to find out what programs have been downloaded for Internet Explorer (the items that are in the folder C:\\Windows\\Downloaded Program Files)? I can use a script to get the executable file names and dependent files, but I\u2019d like to be able to get the names as they [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[17,3,167,5],"class_list":["post-70773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-internet-explorer","tag-scripting-guy","tag-using-the-internet","tag-vbscript"],"acf":[],"blog_post_summary":"<p>Hey, Scripting Guy! Is there an easy way to find out what programs have been downloaded for Internet Explorer (the items that are in the folder C:\\Windows\\Downloaded Program Files)? I can use a script to get the executable file names and dependent files, but I\u2019d like to be able to get the names as they [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/70773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=70773"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/70773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=70773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=70773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=70773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}