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

Download Data Protection Manager 2007Disaster recovery at a low cost Maximize speed, performance and reliablity of your PCs and servers—automatically!Speed Up Your PC! Try Diskeeper 2008 with InvisiTasking Free Now! Microsoft Learning Snack - Green IT Through Virtualization Many organizations face rising operating costs caused by excessive energy consumption. Virtualization and "Green IT" can help cut these costs. Get the information you need to bring Green IT savings to your business. Order Your Fundamentals CD Today!Register today for your in-depth copy of one of three Fundamental CDs on the following topics – Exchange, SQL, and SharePoint. Microsoft Learning Snack - Virtualization With Windows Server 2008Windows Server 2008 includes virtualization technology that allows many operating systems - including open source - to run on a single host. Come learn the basics of implementing these features. Microsoft Learning Snack - Virtualization BasicsWith virtualization, computing components essentially become on-demand services, freeing each element of a system from the others. This short video explains the needs, benefits, and technologies behind virtualization. Microsoft Learning Snack - Virtualization BasicsWith virtualization, computing components essentially become on-demand services, freeing each element of a system from the others. This short video explains the needs, benefits, and technologies behind virtualization. Microsoft Learning Snack - Virtualization With Windows Server 2008Windows Server 2008 includes virtualization technology that allows many operating systems - including open source - to run on a single host. Come learn the basics of implementing these features. Empower Your Processes with PowerShell 201Paul Robichaux delves deep into PowerShell how-tos in 3 informative lessons, each followed by live Q&A—all on your own computer! Register today! Microsoft Learning Snack - Green IT Through VirtualizationMany organizations face rising operating costs caused by excessive energy consumption. Virtualization and "Green IT" can help cut these costs. Get the information you need to bring Green IT savings to your business. New Release: Windows IT Pro Master CD13 years of content archives, fast answers with advanced search tools, and full access to WindowsITPro.com—order today!

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