Using VBS to return the list of download controls and applets of Internet Explorer


Hi, scripting guy! Is there a simple way to find out which programs have been downloaded for Internet Explorer (these items are in the folder “C):” Windows / downloaded program files “? I can use a script to get the executable file name and dependency file, but I want to get the file name that they appear in the folder.

— AC

Hello, AC. When you download an ActiveX control or a java applet, these items are usually placed in the downloaded program folder. You can view these items in Windows Explorer or Internet Explorer. (click Internet Explorer options, and then on the General tab, click settings. In the settings dialog box, click view objects.)  

When you use Windows Explorer to view the contents of a folder, you will see friendly names such as “MSN file upload control”. However, if you use the “dir” command or use a script such as “filesystem object” to access this folder, you will see“ ”Such as. You want to be able to use scripts to return the friendly names you see in Windows Explorer.

So what do you do? Of course, you can use the following script:

Copy codeThe code is as follows:
strComputer = “.” 
Set objWMIService = GetObject(“winmgmts:\\” & strComputer & _ 

Set colIESettings = objWMIService.ExecQuery _ 
    (“Select * from MicrosoftIE_Object”) 

For Each strIESetting in colIESettings 
    Wscript.Echo “Code base: ” & strIESetting.CodeBase 
    Wscript.Echo “Program file: ” & strIESetting.ProgramFile 
    Wscript.Echo “Status: ” & strIESetting.Status 

This script depends on the class Microsoft ie_ As far as we know, neither the class nor the namespace has been proven. However, it seems that this script can be used; run this script and you will get output similar to the following:

Code base:
Program file: MSN File Upload Control
Status: Installed

As you can see, the “programfile” property gives you the same friendly name as it appears in the “downloaded programs” folder.