visual basic script
Posted on 2014-10-30
I am about as new to scripting as you can get, however, I am encouraged that I think I can follow pretty well what a script is trying to do. So I found the follow script which is supposed to get the version of IE it reads as follows.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
Set colIESettings = objWMIService.ExecQuery _
("Select * from MicrosoftIE_Summary")
For Each strIESetting in colIESettings
So I think what is happening is, the first line sets the variable strComputer, then objWMIService is set using the command GetObject from the path \\computername\root\cim2\Application\MicrosoftIE
Then colIESettings is set to everything gathered from MicroSoftIE_Summary
lastly each thing is displayed from StrIESetting.Version
If that is correct, I don't understand why when I run the script on my PC I get a Windows Script Host error at
line 2, Char 1 error 0x8004100E code 8004100E Source (null)
Any ideas what I am doing wrong?