The WMI Command (WMIC) 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:
File | Description |
---|---|
Cli.mof | Schema |
Cliegaliases.mfl | Localization schema |
Cliegaliases.mof | Aliases |
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 |
Wmic.chm | Windows Help |
Wmic.exe | Engine-parser |
Wmiclimofformat.xsl | Default MOF format |
Wmiclitableformat.xsl | Default table format |
Wmiclitableformatnosys.xsl | Optional table format |
Wmiclivalueformat.xsl | Default value list format |
Xml.xsl | Default XML format |
Xsl-mappings.xml | Default style sheet table |
The compilation of the Cli.mof, Cliegaliases.mof, and Clialiases.mfl files creates the \\root\cli name space and populates it with aliases. The Wmic.exe file executes queries and calls methods 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:< style sheet name>.
There are no configuration requirements for this component.
The WMIC component can only be used by local system administrators, regardless of WMI name space permissions on the local computer. The WMIC component is designed to work with the WMI Core and WMI Provider components. The WMIC component also requires the WMI Tools component to compile Managed Object Formats (MOFs), which occurs when wmic.exe is run for the first time.
The following components have related functionality: