WMIC

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:

  • Define aliases, add output formats, and create and execute scripts
  • Browse the WMI schema and query its classes and instances; execute methods · Get information from a local computer, a remote computer, and multiple computers in a single command

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>.

Component Configuration

There are no configuration requirements for this component.

Special Notes

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:

  • 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.
]]>
%11%\wbem hform.xsl False %11%\wbem htable.xsl False %11%\wbem mof.xsl False %11%\wbem texttable.xsl False texttbl.xsl %11%\wbem texttablewsys.xsl False texttblw.xsl %11%\wbem textvaluelist.xsl False textvalu.xsl %11%\wbem wmic.exe False %11%\wbem wmiclimofformat.xsl False wmicmoff.xsl %11%\wbem wmiclitableformat.xsl False wmictfmt.xsl %11%\wbem wmiclitableformatnosys.xsl False wmictfns.xsl %11%\wbem wmiclivalueformat.xsl False wmicvalu.xsl %11%\wbem xml.xsl False File MSVCRT.dll File ADVAPI32.dll File KERNEL32.dll File ole32.dll File OLEAUT32.dll File USER32.dll File MSVCP60.dll %11%\wbem cli.mof False cliegali.mfl %11%\wbem cliegaliases.mfl False cliegali.mof %11%\wbem cliegaliases.mof False %11%\wbem csv.xsl False htblsort.xsl %11%\wbem htable-sortby.xsl False %11%\wbem rawxml.xsl False xslmap.xml %11%\wbem xsl-mappings.xml False {00000000-0000-0000-0000-000000000000} File iphlpapi.dll Dependency upon 'iphlpapi.dll' {00000000-0000-0000-0000-000000000000} wmic.chm %18% False 0 48008 wmic.chm WMI Command Line Utility 1.0 WMI Command line utility 2000 Microsoft Corp. Microsoft Corp. vladj vladj;shbrown 2/3/2001 11/2/2001 12:46:08 AM