WMI & empty classes (Full Version)

All Forums >> [Scripting Technologies] >> Windows Management Instrumentation



Message


boostmr2 -> WMI & empty classes (6/26/2008 6:53:24 PM)

I have the need to read (only read) various IE settings from a remote or local machine.  I already have an asp.net application that pull this information using WMI and an admin account sauccessfully.  About 30% of my clients, however, do not return anything from the MicrosoftIE_ConnectionSettings class within "root\CIMV2\Applications\MicrosoftIE".  Most machines do, but some return literally nothing.  Following is an example client script:

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Applications\MicrosoftIE")
Set colItems = objWMIService.ExecQuery( _
   "SELECT * FROM MicrosoftIE_ConnectionSettings",,48)
For Each objItem in colItems
   Wscript.Echo "-----------------------------------"
   Wscript.Echo "MicrosoftIE_ConnectionSettings instance"
   Wscript.Echo "-----------------------------------"
   Wscript.Echo "Proxy: " & objItem.Proxy
Next

I have added wscript.echo code in various parts of this code to see where it is successful or not.  I know that it is retrieving the MicrosoftIE_ConnectionSettings class without noticable error, however there is nothing inside the colItems object.  its count property is 0.  I have tried catching any exceptions that may thrown, but there aren't any.  All client machines are running windows XP SP2 with some version of IE 6.  Any ideas what might cause this class to be empty?




vrodrigues -> RE: WMI & empty classes (7/2/2008 3:16:54 PM)

I believe the MicrosoftIE_ConnectionSettings class is used primarily for Dial-up connections and is empty unless at least one dial-up connection is specified.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.234375