WMI Command Line Utility
The WMI Command Line Utility component provides a command-line interface for the Windows Management Instrumentation (WMI infrastructure. This component includes a set of commands and control functions to manage a Windows environment. This component interacts with existing shells and utility commands and can be easily extended by scripts or other administration-based applications.
You can access the WMI infrastructure using a command-line interface and intermediate facilitators, called aliases. Aliases capture the WMI class features that are relevant to a specific task, such as network administration. You can use aliases to rename classes, properties, and methods, or to arrange properties that include property values.
This component enables you to perform the following actions:
- Define aliases, add output formats, and create and execute scripts
- Browse the WMI schema and query its classes and instances
- Get information from a local computer, a remote computer, and multiple computers in a single command
The following table shows the files and applications included in this component.
|Csv.xsl||Style sheet for comma-separated value format|
|Hform.xsl||Style sheet for HTML value list format|
|htable-sortby.xsl||Style sheet for HTML table including sortby|
|Htable.xsl||Style sheet for HTML table format|
|Mof.xsl||Style sheet for MOF format|
|Rawxml.xsl||Style sheet for raw XML format|
|Texttable.xsl||Style sheet for table format|
|Texttablewsys.xsl||Optional style sheet for table format|
|Textvaluelist.xsl||Style sheet for value list format|
|Wmiclimofformat.xsl||Default MOF format|
|Wmiclitableformat.xsl||Default table format|
|Wmiclitableformatnosys.xsl||Optional table format|
|Wmiclivalueformat.xsl||Default value list format|
|Wml.xsl||Default XML format|
|Wsl-mappings.xml||Default style sheet table|
The compilation of Cli.mof, Cliegaliases.mod, and Clialiases.mfl files creates the \\root\cli name space and populates it with aliases. The Wmic.exe file executes queries and calls a method as specified by an alias. The Extensible Markup Language (XML) output is formatted using default style sheets as specified in Xsl-mappings.xml, while other formats can be explicitly specified using /FORMAT:< stylesheet name>.
There are no services for this component.
The WMI Command component is designed to work with the WMI Core and WMI Provider components. The WMI Command component also requires the Tools component to compile Managed Object Formats (MOFs), which occurs during the first boot.
The following components have related functionality:
- WMI SNMP Provider, which is needed if a user wants to query the SNMP name space.
- WMI DS Provider, which is needed if a user wants to query the DS name space.
There are no configurable settings for this component.
The WMI Command component can only be used by local system administrators, regardless of WMI name space permissions on the local computer.
© 2006 Microsoft Corporation. All rights reserved.