Wmic

 

Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8

Displays WMI information inside an interactive command shell.

For examples of how to use this command, see Examples.

Syntax

command </parameter>

Sub-commands

The following sub-commands are available at all times:

Sub-command

Description

class

Escapes from the default alias mode of WMIC to access classes in the WMI schema directly.

path

Escapes from the default alias mode of WMIC to access instances in the WMI schema directly.

context

Displays the current values of all global switches.

[quit | exit]

Exits the WMIC command shell.

Parameters

Parameter

Description

</parameter>

<Concise description, starts with a verb.>

</param2>

<Another concise description, starts with a verb.>

Remarks

Scripting

Examples

To display the current values of all global switches, type:

wmic context

Output similar to the following displays:

NAMESPACE    : root\cimv2
ROLE         : root\cli
NODE(S)      : BOBENTERPRISE
IMPLEVEL     : IMPERSONATE
[AUTHORITY   : N/A]
AUTHLEVEL    : PKTPRIVACY
LOCALE       : ms_409
PRIVILEGES   : ENABLE
TRACE        : OFF
RECORD       : N/A
INTERACTIVE  : OFF
FAILFAST     : OFF
OUTPUT       : STDOUT
APPEND       : STDOUT
USER         : N/A
AGGREGATE    : ON

To change the language ID used by the command line to English (locale ID 409), type:

wmic /locale:ms_409

Additional references

Command-Line Syntax Key