MSN Home  |  My MSN  |  Hotmail
Sign in to Windows Live ID Web Search:   
go to MSNGroups 
Groups Home  |  My Groups  |  Language  |  Help  
 
Windows-Scriptwindowsscript@groups.msn.com 
  
What's New
  Join Now
  Home  
  Windows XP  
  Getting Started  
  Advanced Stuff  
  
  Code Signing  
  
  RunDLL  
  
  Script Encoder  
  
  Shell.Application  
  
  Managing IIS  
  
  SMTP Event Sync  
  
  WMI Tutorial  
  
  WMI Information Series  
  
  MSI Files  
  
  Installing Apps  
  FAQ  
  Downloads  
  Recommendations  
  MS Newsgroups  
  Upload  
  Old Homes  
  
  
  Tools  
 

Work in progress...
22-Apr-01 Started
 


 

Windows Management Instrumentation (WMI)

So you have seen the WMI samples in the FAQ, read a couple of articles but still cant figure out how this WMI scripting works. Your not alone! In this article I will attempt to give you an understanding of the WMI mechanics so that you will  be able to derive your own scripts.

The problem with WMI is that it is so big that trying to learn it from just looking at example scripts only lets you scratch the surface. Everything .NET from Microsoft will be WMI enabled and there is no doubt that this is the preferred method for system and application management.

2 upcoming products from MS are fully dependant on WMI:

So if you want to be a top IT pro (and not a slave to the GUI) then you need to learn this stuff.

Components of WMI

All WMI files are stored under the system32\WBEM directory. WinMgmt.exe is run as an NT serverice (via svchost.exe on Windows XP). CimWin32.dll provides most of the Win32 provider fuctionality.

 

To come:

  • WMI Background
  • Definition of terms
  • WMI Syntax
  • WMI Data types

How to browse WMI Namespace

  1. If you have W2K the go to the system32\wbem directory and run WBEMTEST
     
  2. Select 'Connect...' and change the namespace to root\cimv2
  3. Select 'Enum Classes...' and select 'OK'. This opens a Query Results window
     
  4. Scroll down the results until you get to the Win32_ section and double click on a class
     
  5. You can now see the available properties and methods

 

 
Notice: Microsoft has no responsibility for the content featured in this group. Click here for more info.
  Try MSN Internet Software for FREE!
    MSN Home  |  My MSN  |  Hotmail  |  Search
Feedback  |  Help  
  ©2005 Microsoft Corporation. All rights reserved.  Legal  Advertise  MSN Privacy