The WMIC command-line BNF:
<WMI Command> | ::= | [<global switch list>] <command> |
<global switch list> | ::= | <global switches> | <global switches> <global switches list> |
<global switches> | ::= | (/NAMESPACE | /ROLE ) [:<namespace>] | |
<computer id list> | ::= | <computer id> | <computer id> <computer id list> |
<command > | ::= | (<alias> [ <WMI object>] | [<alias>] <path where>) [<verb clause>] | |
<path where> | ::= | [PATH (<path expression> | <class path expression> )][ WHERE <where clause>] |
<alias> | ::= | !! name for the alias. The name will be unique in the context of the namespace in which the alias is defined. Note CLASS, PATH, WHERE, RESTORE and EXIT cannot be used as alias names as they appear in the same location in the syntax. |
<WMI object> | ::= | <parens> <alias parameters> <parens> | <alias parameters> |
<path expression> | ::= | !! A WMI path expression including a key clause |
<where clause> | ::= | !! A WQL where clause optionally surrounded by parenthesis |
<class path expression > |
| !! A WMI path expression that does not include a key clause |
<alias parameters> | ::= | !! one or more space delimited literals that will be used as substitutions in the alias PWhere value. |
<verb clause> | ::= | (<verb> [<verb parameters>] | |
<verb> | ::= | <property name> | |
<verb switches> | ::= | /INTERACTIVE | |
<verb parameter> | ::= | <actual parameter> | |
<standard verb> | ::= | <get verb> | |
<identifier> | ::= | <idhead> [<idrest>] |
<idhead> | ::= | <letter> |
<idrest> | ::= | <identifier> [<letter> | <digit>] |
<get verb> | ::= | GET [<property list>] [<get switches>] |
<property list> | ::= | <property name> | |
<list verb> | ::= | LIST [<list format>|<list switches>] |
<assoc verb> | ::= | ASSOC [<format specifier>] |
<call verb> | ::= | CALL <method name> [<actual parameter list>] |
<actual parameter list> | ::= | <actual parameter> | |
<create-set verb> | ::= | SET <assign list>| CREATE <assign list> |
<assign list> | ::= | <property name> = <property value> | |
<delete verb> | ::= | DELETE |
<get switches> | ::= | /VALUE | |
<interval> | ::= | !! numeric value indicating frequency within which values should be returned |
<format specifier> | ::= | :<xsl file name> | |
<list format> | ::= | BRIEF | |
<list switches> |
| /TRANSLATE | |
<help type> | ::= | : BRIEF | |