Welcome to Scripting Forums Sign in | Join | Help
in Search

How to find things in WMI?

Last post 03-08-2007, 2:41 PM by thomas.mshar. 2 replies.
Sort Posts: Previous Next
  •  03-08-2007, 2:41 PM 502

    How to find things in WMI?

    Hi out there,

    I use WMI a lot in various scripts, but don't have a good handle on the overall structure.  Is there a graphical or outline-style reference to be able to find settings, classes, methods, etc that one has never worked with before?  Up to this point I look in the Hey Scripting Guy! chm, the portable script center chm, or the Internet to find a ready made script.  Along with that I consult the Windows SDK chm file if I have any slight clue to work with.  I also use the WMI Tools that show the actual structure, but of course it's not the place to learn. 

    A good example of what I'm talking about is permanent event consumers.  I found some references to this and it fit the bill for a script to close IE whenever it was started (I work in K-12 education).  I constructed a script to setup the consumer and it works great.  I also wrote a script to remove it.  In spite of this, I really don't know what half of the code in the MOF was for, or what else I could do with this.  I just made it work by putting the pieces in the right places.

     Thanks,

    Mike

  •  03-09-2007, 5:36 PM 508 in reply to 502

    Re: How to find things in WMI?

    Hi bltartt,

    There are two Microsoft tools that I've found to be helpful: The WMI CIM Studio and the WMI Object Browser. You can get them from the WMI Administrative Tools package. Wbemtest.exe, which comes with XP, can also be useful. For learning purposes, I recommend Lavy and Meggitt's book on WMI.

    HTH,

    Bill

  •  04-03-2007, 10:12 AM 590 in reply to 502

    Re: How to find things in WMI?

    Download WMICode Creator from Microsoft.
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Free Download –VS 2008 TrainingExperts Ken Getz & Robert Green plus labs, code, courseware Maximize speed, performance and reliablity of your PCs and servers—automatically!Speed Up Your PC! Try Diskeeper 2008 with InvisiTasking Free Now! Register for SolarWinds VM MonitorGet X-Ray Vision into Your ESX Servers with SolarWinds FREE VM Monitor GoGrid Offers FREE Trial for Windows Cloud ServersDeploy Windows Server 2003 and 2008 with free load balancing through GoGrid’s award winning web-based GUI – all in less than 5 minutes Order Your SQL Fundamentals CD Today! Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD. How healthy is your Exchange Server? Find out Now!Automatic Exchange Server Maintenance helps prevent disasters and improves performance. Download a FREE Exchange Server analysis tool. You've Deployed SharePoint...Now What?This one-day free online conference delivers the technical knowledge needed to kick MOSS up a notch. In one information-packed day, independent SharePoint experts will present practical, real-world information and provide take-away, ready-to-use solutions Ease Your Scripting Pains with the Flexibility of PowerShell!Paul Robichaux equips you with PowerShell basics in 3 introductory lessons, each followed by live Q&A—all on your own computer! Register today! What Would You Do If You Ran Microsoft?ITTV's 2008 inaugural video contest, "If I Ran Microsoft..." is your chance to tell it like it is. Be goofy or be serious, but don"t miss this chance to have fun, win prizes, and go viral in a major way. Maximize Your SharePoint InvestmentThis web seminar discusses how true bi-directional replication of SharePoint content from one server to another enables branch offices to maintain access to current SharePoint content. Rock Your Knowledge, and Compete with Friends and Colleagues!Are you the Web Application Performance Guru in your office? It's time to have fun! Download now to access the crossword puzzle. Challenge yourself and complete this fun activity!

 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing