Wmic command
Short for "WMI (Windows Management Instrumentation) console," wmic is a command line command to query WMI entries.
Beginning in 2012, WMIC is deprecated in favor of PowerShell cmdlets which perform equivalent CIM operations, such as get-wmiobject, invoke-wmimethod, Get-wmiobject, and gwmi.
Availability
Wmic is an external command that is available for the following Microsoft operating systems. In Windows 10 and Windows 11, it is located at C:\Windows\System32\wbem\WMIC.exe.
Syntax
wmic [global switches] <command>
Global switches
/NAMESPACE | NAMESPACE - Path for the namespace the alias is to operate against. Namespaces are always relative. That is, if the namespace does not begin with a "\\" it is assumed to be relative to the current namespace. USAGE: /NAMESPACE:<namespace> |
/ROLE | ROLE - Path for the role containing the alias definitions to be available for the utility session. USAGE: /ROLE:<namespace> NOTE: Roles are namespaces and should be treated in the same way - i.e., relative paths should behave appropriately (default namespace is '\\root\cli'). |
/NODE | NODE - Specify what servers the alias will operate against. USAGE: /NODE:<machine id list> NOTE: <machine id list> ::= <@filename | machine id> | <@filename | machine id> <,machine id list> NOTE: Enclose the switch value in double quotes, if the value contains special characters like '-' or '/'. |
/IMPLEVEL | IMPLEVEL - Determine what level the command line should impersonate. Default is 'Impersonate'. USAGE: /IMPLEVEL:<implevel>[/AUTHORITY:<authority type>] Various implevels are as follows: Impersonation Level ------------------ Anonymous Identify Impersonate Delegate Note: Use /AUTHORITY switch for specifying the authority type. |
/AUTHLEVEL | AUTHLEVEL - Specify the level the command line should authenticate. Default is 'Pktprivacy'. USAGE: /AUTHLEVEL:<authlevel> Various authlevels are as follows: Authlevel --------- Default None Connect Call Pkt Pktintegrity Pktprivacy |
/LOCALE | LOCALE - Specify the language id the command line should use. USAGE: /LOCALE:<locale identifier> NOTE: The parameter to the 'LOCALE' switch is of the form MS_XXX. Where XXX for English is 409, XXX for Finnish is 40b. |
/PRIVILEGES | PRIVILEGES - Enable or disable all privileges. USAGE: /PRIVILEGES:<option> NOTE: Allowed value(s) for <option> is either ENABLE or DISABLE. |
/TRACE | TRACE - Specify whether output debug information is to be copied to stderr during the processing of the request(s). USAGE: /TRACE:<option> NOTE: Allowed value(s) for <option> is either ON or OFF. |
/RECORD | RECORD - Logs all entered commands and WMIC's output to a file in XML format. USAGE: /RECORD:<filepath> |
/INTERACTIVE | INTERACTIVE - Sets or resets the interactive mode. USAGE: /INTERACTIVE:<option> NOTE: Allowed value(s) for <option> is either ON or OFF. |
/FAILFAST | FAILFAST - Sets or resets the FailFast mode. USAGE: /FAILFAST:<option> NOTE: Allowed value(s) for <option> is either ON or OFF. |
/USER | USER - Provides the user to be used during the session. USAGE: /USER:<userid> NOTE: User should be provided in the form <domain>\<user>. |
/PASSWORD | PASSWORD - Provides the password to be used in logging on to this session. USAGE: /PASSWORD:<password> |
/OUTPUT | OUTPUT - Specifies the mode for output redirection. USAGE: /OUTPUT:<outputspec> NOTE: <outputspec> ::= (STDOUT | CLIPBOARD | <filename>) STDOUT - Output is redirected to the STDOUT. CLIPBOARD - Output is copied on to CLIPBOARD. <filename> - Output is written to the specified file. |
/APPEND | APPEND - Specifies the mode for output redirection. USAGE: /APPEND:<outputspec> NOTE: <outputspec> ::= (STDOUT | CLIPBOARD | <filename>) STDOUT - Output is redirected to the STDOUT. CLIPBOARD - Output is copied on to CLIPBOARD. <filename> - Output is appended to the specified file. |
/AGGREGATE | AGGREGATE - Determines the mode of displaying results. USAGE: /AGGREGATE:<option>. NOTE: Allowed value(s) for <option> is either ON or OFF. |
/AUTHORITY | AUTHORITY - Specifies the <authority type> for the connection. USAGE: /AUTHORITY:<authority type> |
/? | /? - Displays specification/syntax for help commands. USAGE: /?:[<helpType>] NOTE: Allowed value(s) for <helpType> is either BRIEF or FULL. |
Enclose the switch value in double quotes, if the value contains special characters like '-' or '/'.
The following alias/es are available in the current role:
ALIAS | Access to the aliases available on the local system. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: ALIAS ASSOC [<format specifier>] ALIAS CALL <method name> [<actual param list>] ALIAS CREATE <assign list> ALIAS DELETE ALIAS GET [<property list>] [<get switches>] ALIAS LIST [<list format>] [<list switches>] |
BASEBOARD | Base board (also known as a motherboard or system board) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: BASEBOARD ASSOC [<format specifier>] BASEBOARD CREATE <assign list> BASEBOARD DELETE BASEBOARD GET [<property list>] [<get switches>] BASEBOARD LIST [<list format>] [<list switches>] |
BIOS | Basic input/output services (BIOS) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: BIOS ASSOC [<format specifier>] BIOS CREATE <assign list> BIOS DELETE BIOS GET [<property list>] [<get switches>] BIOS LIST [<list format>] [<list switches>] |
BOOTCONFIG | Boot configuration management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: BOOTCONFIG ASSOC [<format specifier>] BOOTCONFIG CREATE <assign list> BOOTCONFIG DELETE BOOTCONFIG GET [<property list>] [<get switches>] BOOTCONFIG LIST [<list format>] [<list switches>] |
CDROM | CD-ROM management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: CDROM ASSOC [<format specifier>] CDROM CREATE <assign list> CDROM DELETE CDROM GET [<property list>] [<get switches>] CDROM LIST [<list format>] [<list switches>] |
COMPUTERSYSTEM | Computer system management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: COMPUTERSYSTEM ASSOC [<format specifier>] COMPUTERSYSTEM CALL <method name> [<actual param list>] COMPUTERSYSTEM CREATE <assign list> COMPUTERSYSTEM DELETE COMPUTERSYSTEM GET [<property list>] [<get switches>] COMPUTERSYSTEM LIST [<list format>] [<list switches>] COMPUTERSYSTEM SET [<assign list>] |
CPU | CPU management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: CPU ASSOC [<format specifier>] CPU CREATE <assign list> CPU DELETE CPU GET [<property list>] [<get switches>] CPU LIST [<list format>] [<list switches>] |
CSProduct | Computer system product information from SMBIOS. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: CSProduct ASSOC [<format specifier>] CSProduct CREATE <assign list> CSProduct DELETE CSProduct GET [<property list>] [<get switches>] CSProduct LIST [<list format>] [<list switches>] |
DATAFILE | DataFile Management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DATAFILE ASSOC [<format specifier>] DATAFILE CALL <method name> [<actual param list>] DATAFILE CREATE <assign list> DATAFILE DELETE DATAFILE GET [<property list>] [<get switches>] DATAFILE LIST [<list format>] [<list switches>] |
DCOMAPP | DCOM Application management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DCOMAPP ASSOC [<format specifier>] DCOMAPP CREATE <assign list> DCOMAPP DELETE DCOMAPP GET [<property list>] [<get switches>] DCOMAPP LIST [<list format>] [<list switches>] |
DESKTOP | User's Desktop management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DESKTOP ASSOC [<format specifier>] DESKTOP CREATE <assign list> DESKTOP DELETE DESKTOP GET [<property list>] [<get switches>] DESKTOP LIST [<list format>] [<list switches>] |
DESKTOPMONITOR | Desktop Monitor management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DESKTOPMONITOR ASSOC [<format specifier>] DESKTOPMONITOR CREATE <assign list> DESKTOPMONITOR DELETE DESKTOPMONITOR GET [<property list>] [<get switches>] DESKTOPMONITOR LIST [<list format>] [<list switches>] |
DEVICEMEMORYADDRESS | Device memory addresses management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DEVICEMEMORYADDRESS ASSOC [<format specifier>] DEVICEMEMORYADDRESS CREATE <assign list> DEVICEMEMORYADDRESS DELETE DEVICEMEMORYADDRESS GET [<property list>] [<get switches>] DEVICEMEMORYADDRESS LIST [<list format>] [<list switches>] |
DISKDRIVE | Physical disk drive management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DISKDRIVE ASSOC [<format specifier>] DISKDRIVE CREATE <assign list> DISKDRIVE DELETE DISKDRIVE GET [<property list>] [<get switches>] DISKDRIVE LIST [<list format>] [<list switches>] |
DISKQUOTA | Disk space usage for NTFS volumes. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DISKQUOTA ASSOC [<format specifier>] DISKQUOTA CREATE <assign list> DISKQUOTA DELETE DISKQUOTA GET [<property list>] [<get switches>] DISKQUOTA LIST [<list format>] [<list switches>] DISKQUOTA SET [<assign list>] |
DMACHANNEL | Direct memory access (DMA) channel management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: DMACHANNEL ASSOC [<format specifier>] DMACHANNEL CREATE <assign list> DMACHANNEL DELETE DMACHANNEL GET [<property list>] [<get switches>] DMACHANNEL LIST [<list format>] [<list switches>] |
ENVIRONMENT | System environment settings management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: ENVIRONMENT ASSOC [<format specifier>] ENVIRONMENT CREATE <assign list> ENVIRONMENT DELETE ENVIRONMENT GET [<property list>] [<get switches>] ENVIRONMENT LIST [<list format>] [<list switches>] ENVIRONMENT SET [<assign list>] |
FSDIR | Filesystem directory entry management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: FSDIR ASSOC [<format specifier>] FSDIR CALL <method name> [<actual param list>] FSDIR CREATE <assign list> FSDIR DELETE FSDIR GET [<property list>] [<get switches>] FSDIR LIST [<list format>] [<list switches>] |
GROUP | Group account management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: GROUP ASSOC [<format specifier>] GROUP CALL <method name> [<actual param list>] GROUP CREATE <assign list> GROUP DELETE GROUP GET [<property list>] [<get switches>] GROUP LIST [<list format>] [<list switches>] |
IDECONTROLLER | IDE Controller management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: IDECONTROLLER ASSOC [<format specifier>] IDECONTROLLER CREATE <assign list> IDECONTROLLER DELETE IDECONTROLLER GET [<property list>] [<get switches>] IDECONTROLLER LIST [<list format>] [<list switches>] |
IRQ | Interrupt request line (IRQ) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: IRQ ASSOC [<format specifier>] IRQ CREATE <assign list> IRQ DELETE IRQ GET [<property list>] [<get switches>] IRQ LIST [<list format>] [<list switches>] |
JOB | Provides access to the jobs scheduled using the schedule service. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: JOB ASSOC [<format specifier>] JOB CALL <method name> [<actual param list>] JOB CREATE <assign list> JOB DELETE JOB GET [<property list>] [<get switches>] JOB LIST [<list format>] [<list switches>] |
LOADORDER | Management of system services that define execution dependencies. LOADORDER - Management of system services that define execution dependencies. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: LOADORDER ASSOC [<format specifier>] LOADORDER CREATE <assign list> LOADORDER DELETE LOADORDER GET [<property list>] [<get switches>] LOADORDER LIST [<list format>] [<list switches>] |
LOGICALDISK | Local storage device management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: LOGICALDISK ASSOC [<format specifier>] LOGICALDISK CALL <method name> [<actual param list>] LOGICALDISK CREATE <assign list> LOGICALDISK DELETE LOGICALDISK GET [<property list>] [<get switches>] LOGICALDISK LIST [<list format>] [<list switches>] LOGICALDISK SET [<assign list>] |
LOGON | LOGON Sessions. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: LOGON ASSOC [<format specifier>] LOGON CREATE <assign list> LOGON DELETE LOGON GET [<property list>] [<get switches>] LOGON LIST [<list format>] [<list switches>] |
MEMCACHE | Cache memory management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: MEMCACHE ASSOC [<format specifier>] MEMCACHE CREATE <assign list> MEMCACHE DELETE MEMCACHE GET [<property list>] [<get switches>] MEMCACHE LIST [<list format>] [<list switches>] |
MEMORYCHIP | Memory chip information. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: MEMORYCHIP ASSOC [<format specifier>] MEMORYCHIP CREATE <assign list> MEMORYCHIP DELETE MEMORYCHIP GET [<property list>] [<get switches>] MEMORYCHIP LIST [<list format>] [<list switches>] |
MEMPHYSICAL | Computer system's physical memory management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: MEMPHYSICAL ASSOC [<format specifier>] MEMPHYSICAL CREATE <assign list> MEMPHYSICAL DELETE MEMPHYSICAL GET [<property list>] [<get switches>] MEMPHYSICAL LIST [<list format>] [<list switches>] |
NETCLIENT | Network Client management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NETCLIENT ASSOC [<format specifier>] NETCLIENT CREATE <assign list> NETCLIENT DELETE NETCLIENT GET [<property list>] [<get switches>] NETCLIENT LIST [<list format>] [<list switches>] |
NETLOGIN | Network login information (of a particular user) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NETLOGIN ASSOC [<format specifier>] NETLOGIN CREATE <assign list> NETLOGIN DELETE NETLOGIN GET [<property list>] [<get switches>] NETLOGIN LIST [<list format>] [<list switches>] |
NETPROTOCOL | Protocols (and their network characteristics) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NETPROTOCOL ASSOC [<format specifier>] NETPROTOCOL CREATE <assign list> NETPROTOCOL DELETE NETPROTOCOL GET [<property list>] [<get switches>] NETPROTOCOL LIST [<list format>] [<list switches>] |
NETUSE | Active network connection management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NETUSE ASSOC [<format specifier>] NETUSE CREATE <assign list> NETUSE DELETE NETUSE GET [<property list>] [<get switches>] NETUSE LIST [<list format>] [<list switches>] |
NIC | Network Interface Controller (NIC) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NIC ASSOC [<format specifier>] NIC CREATE <assign list> NIC DELETE NIC GET [<property list>] [<get switches>] NIC LIST [<list format>] [<list switches>] |
NICCONFIG | Network adapter management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NICCONFIG ASSOC [<format specifier>] NICCONFIG CALL <method name> [<actual param list>] NICCONFIG CREATE <assign list> NICCONFIG DELETE NICCONFIG GET [<property list>] [<get switches>] NICCONFIG LIST [<list format>] [<list switches>] |
NTDOMAIN | NT Domain management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NTDOMAIN ASSOC [<format specifier>] NTDOMAIN CREATE <assign list> NTDOMAIN DELETE NTDOMAIN GET [<property list>] [<get switches>] NTDOMAIN LIST [<list format>] [<list switches>] NTDOMAIN SET [<assign list>] |
NTEVENT | Entries in the NT Event Log. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NTEVENT ASSOC [<format specifier>] NTEVENT CREATE <assign list> NTEVENT DELETE NTEVENT GET [<property list>] [<get switches>] NTEVENT LIST [<list format>] [<list switches>] |
NTEVENTLOG | NT eventlog file management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: NTEVENTLOG ASSOC [<format specifier>] NTEVENTLOG CALL <method name> [<actual param list>] NTEVENTLOG CREATE <assign list> NTEVENTLOG DELETE NTEVENTLOG GET [<property list>] [<get switches>] NTEVENTLOG LIST [<list format>] [<list switches>] NTEVENTLOG SET [<assign list>] |
ONBOARDDEVICE | Management of common adapter devices built into the motherboard (system board). (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: ONBOARDDEVICE ASSOC [<format specifier>] ONBOARDDEVICE CREATE <assign list> ONBOARDDEVICE DELETE ONBOARDDEVICE GET [<property list>] [<get switches>] ONBOARDDEVICE LIST [<list format>] [<list switches>] |
OS | Installed Operating System/s management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: OS ASSOC [<format specifier>] OS CALL <method name> [<actual param list>] OS CREATE <assign list> OS DELETE OS GET [<property list>] [<get switches>] OS LIST [<list format>] [<list switches>] OS SET [<assign list>] |
PAGEFILE | Virtual memory file swapping management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PAGEFILE ASSOC [<format specifier>] PAGEFILE CREATE <assign list> PAGEFILE DELETE PAGEFILE GET [<property list>] [<get switches>] PAGEFILE LIST [<list format>] [<list switches>] |
PAGEFILESET | Page file settings management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PAGEFILESET ASSOC [<format specifier>] PAGEFILESET CREATE <assign list> PAGEFILESET DELETE PAGEFILESET GET [<property list>] [<get switches>] PAGEFILESET LIST [<list format>] [<list switches>] PAGEFILESET SET [<assign list>] |
PARTITION | Management of partitioned areas of a physical disk. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PARTITION ASSOC [<format specifier>] PARTITION CREATE <assign list> PARTITION DELETE PARTITION GET [<property list>] [<get switches>] PARTITION LIST [<list format>] [<list switches>] |
PORT | I/O port management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PORT ASSOC [<format specifier>] PORT CREATE <assign list> PORT DELETE PORT GET [<property list>] [<get switches>] PORT LIST [<list format>] [<list switches>] |
PORTCONNECTOR | Physical connection ports management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PORTCONNECTOR ASSOC [<format specifier>] PORTCONNECTOR CREATE <assign list> PORTCONNECTOR DELETE PORTCONNECTOR GET [<property list>] [<get switches>] PORTCONNECTOR LIST [<list format>] [<list switches>] |
PRINTER | Printer device management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PRINTER ASSOC [<format specifier>] PRINTER CALL <method name> [<actual param list>] PRINTER CREATE <assign list> PRINTER DELETE PRINTER GET [<property list>] [<get switches>] PRINTER LIST [<list format>] [<list switches>] PRINTER SET [<assign list>] |
PRINTERCONFIG | Printer device configuration management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PRINTERCONFIG ASSOC [<format specifier>] PRINTERCONFIG CREATE <assign list> PRINTERCONFIG DELETE PRINTERCONFIG GET [<property list>] [<get switches>] PRINTERCONFIG LIST [<list format>] [<list switches>] |
PRINTJOB | Print job management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PRINTJOB ASSOC [<format specifier>] PRINTJOB CALL <method name> [<actual param list>] PRINTJOB CREATE <assign list> PRINTJOB DELETE PRINTJOB GET [<property list>] [<get switches>] PRINTJOB LIST [<list format>] [<list switches>] |
PROCESS | Process management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: PROCESS ASSOC [<format specifier>] PROCESS CALL <method name> [<actual param list>] PROCESS CREATE <assign list> PROCESS DELETE PROCESS GET [<property list>] [<get switches>] PROCESS LIST [<list format>] [<list switches>] |
Product | Installation package task management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: Product ASSOC [<format specifier>] Product CALL <method name> [<actual param list>] Product CREATE <assign list> Product DELETE Product GET [<property list>] [<get switches>] Product LIST [<list format>] [<list switches>] |
QFE | Quick Fix Engineering. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: QFE ASSOC [<format specifier>] QFE CREATE <assign list> QFE DELETE QFE GET [<property list>] [<get switches>] QFE LIST [<list format>] [<list switches>] |
QUOTASETTING | Setting information for disk quotas on a volume. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: QUOTASETTING ASSOC [<format specifier>] QUOTASETTING CREATE <assign list> QUOTASETTING DELETE QUOTASETTING GET [<property list>] [<get switches>] QUOTASETTING LIST [<list format>] [<list switches>] QUOTASETTING SET [<assign list>] |
RDACCOUNT | Remote Desktop connection permission management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: RDACCOUNT ASSOC [<format specifier>] RDACCOUNT CALL <method name> [<actual param list>] RDACCOUNT CREATE <assign list> RDACCOUNT DELETE RDACCOUNT GET [<property list>] [<get switches>] RDACCOUNT LIST [<list format>] [<list switches>] |
RDNIC | Remote Desktop connection management on a specific network adapter. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: RDNIC ASSOC [<format specifier>] RDNIC CALL <method name> [<actual param list>] RDNIC CREATE <assign list> RDNIC DELETE RDNIC GET [<property list>] [<get switches>] RDNIC LIST [<list format>] [<list switches>] RDNIC SET [<assign list>] |
RDPERMISSIONS | Permissions to a specific Remote Desktop connection. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: RDPERMISSIONS ASSOC [<format specifier>] RDPERMISSIONS CALL <method name> [<actual param list>] RDPERMISSIONS CREATE <assign list> RDPERMISSIONS DELETE RDPERMISSIONS GET [<property list>] [<get switches>] RDPERMISSIONS LIST [<list format>] [<list switches>] |
RDTOGGLE | Turning Remote Desktop listener on or off remotely. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: RDTOGGLE ASSOC [<format specifier>] RDTOGGLE CALL <method name> [<actual param list>] RDTOGGLE CREATE <assign list> RDTOGGLE DELETE RDTOGGLE GET [<property list>] [<get switches>] RDTOGGLE LIST [<list format>] [<list switches>] |
RECOVEROS | Information gathered from memory when the operating system fails. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: RECOVEROS ASSOC [<format specifier>] RECOVEROS CREATE <assign list> RECOVEROS DELETE RECOVEROS GET [<property list>] [<get switches>] RECOVEROS LIST [<list format>] [<list switches>] RECOVEROS SET [<assign list>] |
REGISTRY | Computer system Registry management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: REGISTRY ASSOC [<format specifier>] REGISTRY CREATE <assign list> REGISTRY DELETE REGISTRY GET [<property list>] [<get switches>] REGISTRY LIST [<list format>] [<list switches>] REGISTRY SET [<assign list>] |
SCSICONTROLLER | SCSI Controller management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SCSICONTROLLER ASSOC [<format specifier>] SCSICONTROLLER CALL <method name> [<actual param list>] SCSICONTROLLER CREATE <assign list> SCSICONTROLLER DELETE SCSICONTROLLER GET [<property list>] [<get switches>] SCSICONTROLLER LIST [<list format>] [<list switches>] |
SERVER | Server information management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SERVER ASSOC [<format specifier>] SERVER CREATE <assign list> SERVER DELETE SERVER GET [<property list>] [<get switches>] SERVER LIST [<list format>] [<list switches>] |
SERVICE | Service application management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SERVICE ASSOC [<format specifier>] SERVICE CALL <method name> [<actual param list>] SERVICE CREATE <assign list> SERVICE DELETE SERVICE GET [<property list>] [<get switches>] SERVICE LIST [<list format>] [<list switches>] |
SHADOWCOPY | Shadow copy management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SHADOWCOPY ASSOC [<format specifier>] SHADOWCOPY CALL <method name> [<actual param list>] SHADOWCOPY CREATE <assign list> SHADOWCOPY DELETE SHADOWCOPY GET [<property list>] [<get switches>] SHADOWCOPY LIST [<list format>] [<list switches>] |
SHADOWSTORAGE | Shadow copy storage area management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SHADOWSTORAGE ASSOC [<format specifier>] SHADOWSTORAGE CALL <method name> [<actual param list>] SHADOWSTORAGE CREATE <assign list> SHADOWSTORAGE DELETE SHADOWSTORAGE GET [<property list>] [<get switches>] SHADOWSTORAGE LIST [<list format>] [<list switches>] SHADOWSTORAGE SET [<assign list>] |
SHARE | Shared resource management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SHARE ASSOC [<format specifier>] SHARE CALL <method name> [<actual param list>] SHARE CREATE <assign list> SHARE DELETE SHARE GET [<property list>] [<get switches>] SHARE LIST [<list format>] [<list switches>] |
SOFTWAREELEMENT | Management of the elements of a software product installed on a system. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SOFTWAREELEMENT ASSOC [<format specifier>] SOFTWAREELEMENT CREATE <assign list> SOFTWAREELEMENT DELETE SOFTWAREELEMENT GET [<property list>] [<get switches>] SOFTWAREELEMENT LIST [<list format>] [<list switches>] |
SOFTWAREFEATURE | Management of software product subsets of SoftwareElement. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SOFTWAREFEATURE ASSOC [<format specifier>] SOFTWAREFEATURE CALL <method name> [<actual param list>] SOFTWAREFEATURE CREATE <assign list> SOFTWAREFEATURE DELETE SOFTWAREFEATURE GET [<property list>] [<get switches>] SOFTWAREFEATURE LIST [<list format>] [<list switches>] |
SOUNDDEV | Sound Device management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SOUNDDEV ASSOC [<format specifier>] SOUNDDEV CREATE <assign list> SOUNDDEV DELETE SOUNDDEV GET [<property list>] [<get switches>] SOUNDDEV LIST [<list format>] [<list switches>] |
STARTUP | Management of commands that run automatically when users log onto the computer system. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: STARTUP ASSOC [<format specifier>] STARTUP CREATE <assign list> STARTUP DELETE STARTUP GET [<property list>] [<get switches>] STARTUP LIST [<list format>] [<list switches>] |
SYSACCOUNT | System account management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SYSACCOUNT ASSOC [<format specifier>] SYSACCOUNT CREATE <assign list> SYSACCOUNT DELETE SYSACCOUNT GET [<property list>] [<get switches>] SYSACCOUNT LIST [<list format>] [<list switches>] |
SYSDRIVER | Management of the system driver for a base service. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SYSDRIVER ASSOC [<format specifier>] SYSDRIVER CALL <method name> [<actual param list>] SYSDRIVER CREATE <assign list> SYSDRIVER DELETE SYSDRIVER GET [<property list>] [<get switches>] SYSDRIVER LIST [<list format>] [<list switches>] |
SYSTEMENCLOSURE | Physical system enclosure management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SYSTEMENCLOSURE ASSOC [<format specifier>] SYSTEMENCLOSURE CREATE <assign list> SYSTEMENCLOSURE DELETE SYSTEMENCLOSURE GET [<property list>] [<get switches>] SYSTEMENCLOSURE LIST [<list format>] [<list switches>] |
SYSTEMSLOT | Management of physical connection points including ports, slots, and peripherals, and proprietary connections points. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: SYSTEMSLOT ASSOC [<format specifier>] SYSTEMSLOT CREATE <assign list> SYSTEMSLOT DELETE SYSTEMSLOT GET [<property list>] [<get switches>] SYSTEMSLOT LIST [<list format>] [<list switches>] |
TAPEDRIVE | Tape drive management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: TAPEDRIVE ASSOC [<format specifier>] TAPEDRIVE CREATE <assign list> TAPEDRIVE DELETE TAPEDRIVE GET [<property list>] [<get switches>] TAPEDRIVE LIST [<list format>] [<list switches>] |
TEMPERATURE | Data management of a temperature sensor (electronic thermometer). (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: TEMPERATURE ASSOC [<format specifier>] TEMPERATURE CREATE <assign list> TEMPERATURE DELETE TEMPERATURE GET [<property list>] [<get switches>] TEMPERATURE LIST [<list format>] [<list switches>] |
TIMEZONE | Time zone data management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: TIMEZONE ASSOC [<format specifier>] TIMEZONE CREATE <assign list> TIMEZONE DELETE TIMEZONE GET [<property list>] [<get switches>] TIMEZONE LIST [<list format>] [<list switches>] |
UPS | Uninterruptible power supply (UPS) management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: UPS ASSOC [<format specifier>] UPS CREATE <assign list> UPS DELETE UPS GET [<property list>] [<get switches>] UPS LIST [<list format>] [<list switches>] |
USERACCOUNT | User account management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: USERACCOUNT ASSOC [<format specifier>] USERACCOUNT CALL <method name> [<actual param list>] USERACCOUNT CREATE <assign list> USERACCOUNT DELETE USERACCOUNT GET [<property list>] [<get switches>] USERACCOUNT LIST [<list format>] [<list switches>] USERACCOUNT SET [<assign list>] |
VOLTAGE | Voltage sensor (electronic voltmeter) data management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: VOLTAGE ASSOC [<format specifier>] VOLTAGE CREATE <assign list> VOLTAGE DELETE VOLTAGE GET [<property list>] [<get switches>] VOLTAGE LIST [<list format>] [<list switches>] |
VOLUME | Local storage volume management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: VOLUME ASSOC [<format specifier>] VOLUME CALL <method name> [<actual param list>] VOLUME CREATE <assign list> VOLUME DELETE VOLUME GET [<property list>] [<get switches>] VOLUME LIST [<list format>] [<list switches>] VOLUME SET [<assign list>] |
VOLUMEQUOTASETTING | Associates the disk quota setting with a specific disk volume. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: VOLUMEQUOTASETTING ASSOC [<format specifier>] VOLUMEQUOTASETTING CREATE <assign list> VOLUMEQUOTASETTING DELETE VOLUMEQUOTASETTING GET [<property list>] [<get switches>] VOLUMEQUOTASETTING LIST [<list format>] [<list switches>] |
VOLUMEUSERQUOTA | Per user storage volume quota management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: VOLUMEUSERQUOTA ASSOC [<format specifier>] VOLUMEUSERQUOTA CREATE <assign list> VOLUMEUSERQUOTA DELETE VOLUMEUSERQUOTA GET [<property list>] [<get switches>] VOLUMEUSERQUOTA LIST [<list format>] [<list switches>] VOLUMEUSERQUOTA SET [<assign list>] |
WMISET | WMI service operational parameters management. (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. USAGE: WMISET ASSOC [<format specifier>] WMISET CREATE <assign list> WMISET DELETE WMISET GET [<property list>] [<get switches>] WMISET LIST [<list format>] [<list switches>] WMISET SET [<assign list>] |
For more information on a specific alias, type: alias /? at the command prompt.
CLASS | Escapes to full WMI schema. USAGE: CLASS <class path expr> [<standardverb> [<verb switches>]] |
PATH | Escapes to full WMI object paths. USAGE: PATH (<path expr> | (<class path expr> [WHERE <where clause>])) [<verb clause>] |
CONTEXT | Displays the state of all the global switches. |
QUIT/EXIT | Exits the program. |
For more information on CLASS/PATH/CONTEXT, type: (CLASS | PATH | CONTEXT) /? at the prompt.
Examples
To run the wmic command, you must have administrative rights.
wmic
Running wmic alone takes you to the wmic:root\cli> prompt. At the prompt, type /? to get help at any time or <alias> /? to get additional help with that alias. To quit from the wmic prompt, type quit or exit.
wmic logicaldisk get name
Display each of the logical disk drives on the computer, as shown below. If you wanted to see all the options for this command, including name, type: wmic logicaldisk get /? at the prompt.
Name
C:
D:
E:
wmic os list brief
This command would give you brief information about the operating system, as shown in the example below.
BuildNumber | Organization | RegisteredUser | SerialNumber | SystemDirectory | Version |
7601 | Computer Hope | Mrhope | 00123-045-6789012-34567 | C:\Windows\system32 | 6.1.7601 |
wmic printer list status
List the printer status of each of the printers installed on the computer.
WMIC /Output:bios.html BIOS Get Manufacturer,Name,Version /Format:htable
The command above may appear involved, but is still relatively simple. First the /Output: is sending the command's output to the bios.html file, which is saved into the current directory. Next, the wmic BIOS get command will retrieve the Manufacturer, Name, Serial Number, and Version of the BIOS. Finally, the /format:htable will format the results into an HTML table. Below, is an example of how the output may appear in the bios.html file.
1 Instances of Win32_BIOS
Node | Manufacturer | Name | SerialNumber | Version |
HOPE-PC | DELL INC. | Default System BIOS | 123AB12 | DELL - 20081105 |
wmic product list brief
Lists each of the programs that are installed on the computer with brief details. Note: This command could take a minute or two to complete depending on how many programs you have installed on the computer. Furthermore, the output may exceed the limit of what can be shown in the window. This command can also be made into an HTML table as explained in the previous example.
wmic diskdrive get model,name,size
Display the model, name, and size of the hard drives installed on the computer, as shown in the example below.
Model Name Size
WDC WD3000HLFS-75G6U1 ATA Device \\.\PHYSICALDRIVE0 3000664396
TRUSTED Mass Storage USB Device \\.\PHYSICALDRIVE1 21990203827
wmic os get lastbootuptime
Display when the computer last boot.