myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


WMI & empty classes

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Scripting Technologies] >> Windows Management Instrumentation >> WMI & empty classes Page: [1]
Login
Message << Older Topic   Newer Topic >>
WMI & empty classes - 6/26/2008 6:53:24 PM   
boostmr2

 

Posts: 1
Score: 0
Joined: 6/26/2008
Status: offline
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?
Post #: 1
RE: WMI & empty classes - 7/2/2008 3:16:54 PM   
vrodrigues

 

Posts: 65
Score: 9
Joined: 6/8/2001
From: Massachusetts
Status: offline
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.

(in reply to boostmr2)
Post #: 2
Page:   [1]
All Forums >> [Scripting Technologies] >> Windows Management Instrumentation >> WMI & empty classes Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.516