windows wmic command line command

Upload: clinton-ellis

Post on 04-Jun-2018

314 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Windows Wmic Command Line Command

    1/24

    indows wmic command line command

    ick links

    About wmic

    Availability

    Syntax

    Examples

    out wmic

    Short for WMI console, wmic is a command line command to query WMIentries.

    ailability

    The wmic command is an external commandthat is available in the below Microsoft operating systems.

    Windows XP professional

    Windows 2003

    Windows Vista

    Windows 7

    ntax

    obal switches]

    e following global switches are available:

    /NAMESPACE NAMESPACE - Path for the namespace the alias is to operate against. Namespaces are alwaysrelative i.e. if the namespace does not begin with a '\\' it will be assumed to be relative to thecurrent namespace.

    USAGE:

    /NAMESPACE:

    /ROLE ROLE - Path for the role containing the alias definitions to be available for the utility session.

    USAGE:

    /ROLE:NOTE: Roles are actually 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:NOTE: ::= |

  • 8/13/2019 Windows Wmic Command Line Command

    2/24

    list>

    /IMPLEVEL IMPLEVEL - Determine what level the command line should impersonate. Default is'Impersonate'.

    USAGE:

    /IMPLEVEL:[/AUTHORITY:]

    Various implevels are as follows:Impersonation Level------------------AnonymousIdentifyImpersonateDelegate

    Note: Use /AUTHORITY switch for specifying the authority type.

    /AUTHLEVEL AUTHLEVEL - Specify the level the command line should authenticate. Default is 'Pktprivacy'.

    USAGE:

    /AUTHLEVEL:

    Various authlevels are as follows:Authlevel---------DefaultNoneConnectCallPktPktintegrityPktprivacy

    /LOCALE LOCALE - Specify the language id the command line should use.

    USAGE:

    /LOCALE: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:NOTE: Allowed value(s) for is either ENABLE or DISABLE.

    /TRACE TRACE - Specify whether output debug information is to be copied to stderr during theprocessing of the request(s).

    USAGE:

    /TRACE:NOTE: Allowed value(s) for is either ON or OFF.

    /RECORD RECORD - Logs all entered commands and WMIC's output to a file in XML format.

  • 8/13/2019 Windows Wmic Command Line Command

    3/24

    USAGE:

    /RECORD:

    /INTERACTIVE INTERACTIVE - Sets or resets the interactive mode.

    USAGE:

    /INTERACTIVE:NOTE: Allowed value(s) for is either ON or OFF.

    /FAILFAST FAILFAST - Sets or resets the FailFast mode.

    USAGE:

    /FAILFAST:NOTE: Allowed value(s) for is either ON or OFF.

    /USER USER - Provides the user to be used during the session.

    USAGE:

    /USER:NOTE: User should be provided in the form \.

    /PASSWORD PASSWORD - Provides the password to be used in logging on to this session.

    USAGE:

    /PASSWORD:

    /OUTPUT OUTPUT - Specifies the mode for output redirection.

    USAGE:

    /OUTPUT:NOTE: ::= (STDOUT | CLIPBOARD | )STDOUT - Output will be redirected to the STDOUT.CLIPBOARD - Output will be copied on to CLIPBOARD. - Output will be written to the specified file.

    /APPEND APPEND - Specifies the mode for output redirection.

    USAGE:

    /APPEND:NOTE: ::= (STDOUT | CLIPBOARD | )STDOUT - Output will be redirected to the STDOUT.CLIPBOARD - Output will be copied on to CLIPBOARD. - Output will be appended to the specified file.

    /AGGREGATE AGGREGATE - Determines the mode of displaying results.

    USAGE:

    /AGGREGATE:.NOTE: Allowed value(s) for is either ON or OFF.

    /AUTHORITY AUTHORITY - Specifies the for the connection.

    USAGE:

  • 8/13/2019 Windows Wmic Command Line Command

    4/24

    /AUTHORITY:

    /? /? - Displays specification/syntax for help commands.

    USAGE:

    /?:[]NOTE: Allowed value(s) for is either BRIEF or FULL.

    OTE: Enclose the switch value in double quotes, if the value contains special characters like '-' or '/'.

    e following alias/es are available in the current role:

    ALIAS Access to the aliases available on the local system.

    ( [WMIObject] | [] | [] )

    [].

    USAGE:

    ALIAS ASSOC []ALIAS CALL []ALIAS CREATE ALIAS DELETEALIAS GET [] []ALIAS LIST [] []

    BASEBOARD Base board (also known as a motherboard or system board) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    BASEBOARD ASSOC []BASEBOARD CREATE BASEBOARD DELETEBASEBOARD GET [] []BASEBOARD LIST [] []

    BIOS Basic input/output services (BIOS) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    BIOS ASSOC []BIOS CREATE BIOS DELETEBIOS GET [] []BIOS LIST [] []

    BOOTCONFIG Boot configuration management.

    ( [WMIObject] | [] | [] )[].

  • 8/13/2019 Windows Wmic Command Line Command

    5/24

    USAGE:

    BOOTCONFIG ASSOC []BOOTCONFIG CREATE BOOTCONFIG DELETEBOOTCONFIG GET [] []BOOTCONFIG LIST [] []

    CDROM CD-ROM management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    CDROM ASSOC []CDROM CREATE CDROM DELETECDROM GET [] []CDROM LIST [] []

    COMPUTERSYSTEM Computer system management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    COMPUTERSYSTEM ASSOC []COMPUTERSYSTEM CALL []COMPUTERSYSTEM CREATE COMPUTERSYSTEM DELETECOMPUTERSYSTEM GET [] []COMPUTERSYSTEM LIST [] []COMPUTERSYSTEM SET []

    CPU CPU management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    CPU ASSOC []CPU CREATE CPU DELETECPU GET [] []CPU LIST [] []

    CSProduct Computer system product information from SMBIOS.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    CSProduct ASSOC []CSProduct CREATE CSProduct DELETECSProduct GET [] []CSProduct LIST [] []

  • 8/13/2019 Windows Wmic Command Line Command

    6/24

    DATAFILE DataFile Management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DATAFILE ASSOC []DATAFILE CALL []

    DATAFILE CREATE DATAFILE DELETEDATAFILE GET [] []DATAFILE LIST [] []

    DCOMAPP DCOM Application management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DCOMAPP ASSOC []DCOMAPP CREATE DCOMAPP DELETEDCOMAPP GET [] []DCOMAPP LIST [] []

    DESKTOP User's Desktop management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DESKTOP ASSOC []DESKTOP CREATE DESKTOP DELETEDESKTOP GET [] []DESKTOP LIST [] []

    DESKTOPMONITOR Desktop Monitor management.

    ( [WMIObject] | [] | [] )

    [].

    USAGE:

    DESKTOPMONITOR ASSOC []DESKTOPMONITOR CREATE DESKTOPMONITOR DELETEDESKTOPMONITOR GET [] []DESKTOPMONITOR LIST [] []

    DEVICEMEMORYADDRESS Device memory addresses management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DEVICEMEMORYADDRESS ASSOC []

  • 8/13/2019 Windows Wmic Command Line Command

    7/24

    DEVICEMEMORYADDRESS CREATE DEVICEMEMORYADDRESS DELETEDEVICEMEMORYADDRESS GET [] []DEVICEMEMORYADDRESS LIST [] []

    DISKDRIVE Physical disk drive management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DISKDRIVE ASSOC []DISKDRIVE CREATE DISKDRIVE DELETEDISKDRIVE GET [] []DISKDRIVE LIST [] []

    DISKQUOTA Disk space usage for NTFS volumes.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DISKQUOTA ASSOC []DISKQUOTA CREATE DISKQUOTA DELETEDISKQUOTA GET [] []DISKQUOTA LIST [] []DISKQUOTA SET []

    DMACHANNEL Direct memory access (DMA) channel management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    DMACHANNEL ASSOC []DMACHANNEL CREATE DMACHANNEL DELETEDMACHANNEL GET [] []

    DMACHANNEL LIST [] []

    ENVIRONMENT System environment settings management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    ENVIRONMENT ASSOC []ENVIRONMENT CREATE ENVIRONMENT DELETEENVIRONMENT GET [] []ENVIRONMENT LIST [] []ENVIRONMENT SET []

    FSDIR Filesystem directory entry management.

  • 8/13/2019 Windows Wmic Command Line Command

    8/24

    ( [WMIObject] | [] | [] )[].

    USAGE:

    FSDIR ASSOC []FSDIR CALL []FSDIR CREATE FSDIR DELETEFSDIR GET [] []

    FSDIR LIST [] []

    GROUP Group account management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    GROUP ASSOC []GROUP CALL []

    GROUP CREATE GROUP DELETEGROUP GET [] []GROUP LIST [] []

    IDECONTROLLER IDE Controller management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    IDECONTROLLER ASSOC []IDECONTROLLER CREATE IDECONTROLLER DELETEIDECONTROLLER GET [] []IDECONTROLLER LIST [] []

    IRQ Interrupt request line (IRQ) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    IRQ ASSOC []IRQ CREATE IRQ DELETEIRQ GET [] []IRQ LIST [] []

    JOB Provides access to the jobs scheduled using the schedule service.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    JOB ASSOC []JOB CALL []

  • 8/13/2019 Windows Wmic Command Line Command

    9/24

    JOB CREATE JOB DELETEJOB GET [] []JOB LIST [] []

    LOADORDER Management of system services that define execution dependencies.

    LOADORDER - Management of system services that define executiondependencies.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    LOADORDER ASSOC []LOADORDER CREATE LOADORDER DELETELOADORDER GET [] []LOADORDER LIST [] []

    LOGICALDISK Local storage device management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    LOGICALDISK ASSOC []LOGICALDISK CALL []LOGICALDISK CREATE LOGICALDISK DELETELOGICALDISK GET [] []LOGICALDISK LIST [] []LOGICALDISK SET []

    LOGON LOGON Sessions.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    LOGON ASSOC []

    LOGON CREATE LOGON DELETELOGON GET [] []LOGON LIST [] []

    MEMCACHE Cache memory management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    MEMCACHE ASSOC []MEMCACHE CREATE MEMCACHE DELETEMEMCACHE GET [] []MEMCACHE LIST [] []

  • 8/13/2019 Windows Wmic Command Line Command

    10/24

    MEMORYCHIP Memory chip information.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    MEMORYCHIP ASSOC []MEMORYCHIP CREATE MEMORYCHIP DELETE

    MEMORYCHIP GET [] []MEMORYCHIP LIST [] []

    MEMPHYSICAL Computer system's physical memory management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    MEMPHYSICAL ASSOC []

    MEMPHYSICAL CREATE MEMPHYSICAL DELETEMEMPHYSICAL GET [] []MEMPHYSICAL LIST [] []

    NETCLIENT Network Client management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    NETCLIENT ASSOC []NETCLIENT CREATE NETCLIENT DELETENETCLIENT GET [] []NETCLIENT LIST [] []

    NETLOGIN Network login information (of a particular user) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    NETLOGIN ASSOC []NETLOGIN CREATE NETLOGIN DELETENETLOGIN GET [] []NETLOGIN LIST [] []

    NETPROTOCOL Protocols (and their network characteristics) management.

    ( [WMIObject] | [] | [] )

    [].

    USAGE:

    NETPROTOCOL ASSOC []NETPROTOCOL CREATE NETPROTOCOL DELETE

  • 8/13/2019 Windows Wmic Command Line Command

    11/24

    NETPROTOCOL GET [] []NETPROTOCOL LIST [] []

    NETUSE Active network connection management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    NETUSE ASSOC []NETUSE CREATE NETUSE DELETENETUSE GET [] []NETUSE LIST [] []

    NIC Network Interface Controller (NIC) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    NIC ASSOC []NIC CREATE NIC DELETENIC GET [] []NIC LIST [] []

    NICCONFIG Network adapter management.

    ( [WMIObject] | [] | [] )

    [].

    USAGE:

    NICCONFIG ASSOC []NICCONFIG CALL []NICCONFIG CREATE NICCONFIG DELETENICCONFIG GET [] []NICCONFIG LIST [] []

    NTDOMAIN NT Domain management.( [WMIObject] | [] | [] )[].

    USAGE:

    NTDOMAIN ASSOC []NTDOMAIN CREATE NTDOMAIN DELETENTDOMAIN GET [] []NTDOMAIN LIST [] []

    NTDOMAIN SET []

    NTEVENT Entries in the NT Event Log.

    ( [WMIObject] | [] | [] )[].

  • 8/13/2019 Windows Wmic Command Line Command

    12/24

    USAGE:

    NTEVENT ASSOC []NTEVENT CREATE NTEVENT DELETENTEVENT GET [] []NTEVENT LIST [] []

    NTEVENTLOG NT eventlog file management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    NTEVENTLOG ASSOC []NTEVENTLOG CALL []NTEVENTLOG CREATE NTEVENTLOG DELETENTEVENTLOG GET [] []

    NTEVENTLOG LIST [] []NTEVENTLOG SET []

    ONBOARDDEVICE Management of common adapter devices built into the motherboard (systemboard).

    ( [WMIObject] | [] | [] )[].

    USAGE:

    ONBOARDDEVICE ASSOC []ONBOARDDEVICE CREATE ONBOARDDEVICE DELETEONBOARDDEVICE GET [] []ONBOARDDEVICE LIST [] []

    OS Installed Operating System/s management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    OS ASSOC []OS CALL []OS CREATE OS DELETEOS GET [] []OS LIST [] []OS SET []

    PAGEFILE Virtual memory file swapping management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PAGEFILE ASSOC []PAGEFILE CREATE

  • 8/13/2019 Windows Wmic Command Line Command

    13/24

    PAGEFILE DELETEPAGEFILE GET [] []PAGEFILE LIST [] []

    PAGEFILESET Page file settings management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PAGEFILESET ASSOC []PAGEFILESET CREATE PAGEFILESET DELETEPAGEFILESET GET [] []PAGEFILESET LIST [] []PAGEFILESET SET []

    PARTITION Management of partitioned areas of a physical disk.

    ( [WMIObject] | [] | [] )

    [].

    USAGE:

    PARTITION ASSOC []PARTITION CREATE PARTITION DELETEPARTITION GET [] []PARTITION LIST [] []

    PORT I/O port management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PORT ASSOC []PORT CREATE PORT DELETEPORT GET [] []PORT LIST [] []

    PORTCONNECTOR Physical connection ports management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PORTCONNECTOR ASSOC []PORTCONNECTOR CREATE PORTCONNECTOR DELETE

    PORTCONNECTOR GET [] []PORTCONNECTOR LIST [] []

    PRINTER Printer device management.

    ( [WMIObject] | [] | [] )[].

  • 8/13/2019 Windows Wmic Command Line Command

    14/24

    USAGE:

    PRINTER ASSOC []PRINTER CALL []PRINTER CREATE PRINTER DELETEPRINTER GET [] []PRINTER LIST [] []PRINTER SET []

    PRINTERCONFIG Printer device configuration management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PRINTERCONFIG ASSOC []PRINTERCONFIG CREATE PRINTERCONFIG DELETE

    PRINTERCONFIG GET [] []PRINTERCONFIG LIST [] []

    PRINTJOB Print job management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PRINTJOB ASSOC []PRINTJOB CALL []PRINTJOB CREATE PRINTJOB DELETEPRINTJOB GET [] []PRINTJOB LIST [] []

    PROCESS Process management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    PROCESS ASSOC []PROCESS CALL []PROCESS CREATE PROCESS DELETEPROCESS GET [] []PROCESS LIST [] []

    Product Installation package task management.

    ( [WMIObject] | [] | [] )

    [].USAGE:

    Product ASSOC []Product CALL []Product CREATE

  • 8/13/2019 Windows Wmic Command Line Command

    15/24

    Product DELETEProduct GET [] []Product LIST [] []

    QFE Quick Fix Engineering.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    QFE ASSOC []QFE CREATE QFE DELETEQFE GET [] []QFE LIST [] []

    QUOTASETTING Setting information for disk quotas on a volume.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    QUOTASETTING ASSOC []QUOTASETTING CREATE QUOTASETTING DELETEQUOTASETTING GET [] []QUOTASETTING LIST [] []QUOTASETTING SET []

    RDACCOUNT Remote Desktop connection permission management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    RDACCOUNT ASSOC []RDACCOUNT CALL []RDACCOUNT CREATE RDACCOUNT DELETERDACCOUNT GET [] []RDACCOUNT LIST [] []

    RDNIC Remote Desktop connection management on a specific network adapter.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    RDNIC ASSOC []RDNIC CALL []RDNIC CREATE

    RDNIC DELETERDNIC GET [] []RDNIC LIST [] []RDNIC SET []

    RDPERMISSIONS Permissions to a specific Remote Desktop connection.

  • 8/13/2019 Windows Wmic Command Line Command

    16/24

    ( [WMIObject] | [] | [] )[].

    USAGE:

    RDPERMISSIONS ASSOC []RDPERMISSIONS CALL []RDPERMISSIONS CREATE RDPERMISSIONS DELETERDPERMISSIONS GET [] []

    RDPERMISSIONS LIST [] []

    RDTOGGLE Turning Remote Desktop listener on or off remotely.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    RDTOGGLE ASSOC []RDTOGGLE CALL []

    RDTOGGLE CREATE RDTOGGLE DELETERDTOGGLE GET [] []RDTOGGLE LIST [] []

    RECOVEROS Information that will be gathered from memory when the operating system fails.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    RECOVEROS ASSOC []RECOVEROS CREATE RECOVEROS DELETERECOVEROS GET [] []RECOVEROS LIST [] []RECOVEROS SET []

    REGISTRY Computer system registry management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    REGISTRY ASSOC []REGISTRY CREATE REGISTRY DELETEREGISTRY GET [] []REGISTRY LIST [] []REGISTRY SET []

    SCSICONTROLLER SCSI Controller management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SCSICONTROLLER ASSOC []

  • 8/13/2019 Windows Wmic Command Line Command

    17/24

    SCSICONTROLLER CALL []SCSICONTROLLER CREATE SCSICONTROLLER DELETESCSICONTROLLER GET [] []SCSICONTROLLER LIST [] []

    SERVER Server information management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SERVER ASSOC []SERVER CREATE SERVER DELETESERVER GET [] []SERVER LIST [] []

    SERVICE Service application management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SERVICE ASSOC []SERVICE CALL []SERVICE CREATE SERVICE DELETESERVICE GET [] []SERVICE LIST [] []

    SHADOWCOPY Shadow copy management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SHADOWCOPY ASSOC []SHADOWCOPY CALL []SHADOWCOPY CREATE

    SHADOWCOPY DELETESHADOWCOPY GET [] []SHADOWCOPY LIST [] []

    SHADOWSTORAGE Shadow copy storage area management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SHADOWSTORAGE ASSOC []SHADOWSTORAGE CALL []SHADOWSTORAGE CREATE SHADOWSTORAGE DELETESHADOWSTORAGE GET [] []SHADOWSTORAGE LIST [] []SHADOWSTORAGE SET []

  • 8/13/2019 Windows Wmic Command Line Command

    18/24

    SHARE Shared resource management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SHARE ASSOC []SHARE CALL []

    SHARE CREATE SHARE DELETESHARE GET [] []SHARE LIST [] []

    SOFTWAREELEMENT Management of the elements of a software product installed on a system.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SOFTWAREELEMENT ASSOC []SOFTWAREELEMENT CREATE SOFTWAREELEMENT DELETESOFTWAREELEMENT GET [] []SOFTWAREELEMENT LIST [] []

    SOFTWAREFEATURE Management of software product subsets of SoftwareElement.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SOFTWAREFEATURE ASSOC []SOFTWAREFEATURE CALL []SOFTWAREFEATURE CREATE SOFTWAREFEATURE DELETESOFTWAREFEATURE GET [] []SOFTWAREFEATURE LIST [] []

    SOUNDDEV Sound Device management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SOUNDDEV ASSOC []SOUNDDEV CREATE SOUNDDEV DELETESOUNDDEV GET [] []SOUNDDEV LIST [] []

    STARTUP Management of commands that run automatically when users log onto thecomputer system.

    ( [WMIObject] | [] | [] )[].

    USAGE:

  • 8/13/2019 Windows Wmic Command Line Command

    19/24

    STARTUP ASSOC []STARTUP CREATE STARTUP DELETESTARTUP GET [] []STARTUP LIST [] []

    SYSACCOUNT System account management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SYSACCOUNT ASSOC []SYSACCOUNT CREATE SYSACCOUNT DELETESYSACCOUNT GET [] []SYSACCOUNT LIST [] []

    SYSDRIVER Management of the system driver for a base service.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SYSDRIVER ASSOC []SYSDRIVER CALL []SYSDRIVER CREATE SYSDRIVER DELETESYSDRIVER GET [] []SYSDRIVER LIST [] []

    SYSTEMENCLOSURE Physical system enclosure management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SYSTEMENCLOSURE ASSOC []SYSTEMENCLOSURE CREATE SYSTEMENCLOSURE DELETE

    SYSTEMENCLOSURE GET [] []SYSTEMENCLOSURE LIST [] []

    SYSTEMSLOT Management of physical connection points including ports, slots and peripherals,and proprietary connections points.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    SYSTEMSLOT ASSOC []SYSTEMSLOT CREATE SYSTEMSLOT DELETESYSTEMSLOT GET [] []SYSTEMSLOT LIST [] []

  • 8/13/2019 Windows Wmic Command Line Command

    20/24

    TAPEDRIVE Tape drive management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    TAPEDRIVE ASSOC []TAPEDRIVE CREATE TAPEDRIVE DELETE

    TAPEDRIVE GET [] []TAPEDRIVE LIST [] []

    TEMPERATURE Data management of a temperature sensor (electronic thermometer).

    ( [WMIObject] | [] | [] )[].

    USAGE:

    TEMPERATURE ASSOC []

    TEMPERATURE CREATE TEMPERATURE DELETETEMPERATURE GET [] []TEMPERATURE LIST [] []

    TIMEZONE Time zone data management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    TIMEZONE ASSOC []TIMEZONE CREATE TIMEZONE DELETETIMEZONE GET [] []TIMEZONE LIST [] []

    UPS Uninterruptible power supply (UPS) management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    UPS ASSOC []UPS CREATE UPS DELETEUPS GET [] []UPS LIST [] []

    USERACCOUNT User account management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    USERACCOUNT ASSOC []USERACCOUNT CALL []

  • 8/13/2019 Windows Wmic Command Line Command

    21/24

    USERACCOUNT CREATE USERACCOUNT DELETEUSERACCOUNT GET [] []USERACCOUNT LIST [] []USERACCOUNT SET []

    VOLTAGE Voltage sensor (electronic voltmeter) data management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    VOLTAGE ASSOC []VOLTAGE CREATE VOLTAGE DELETEVOLTAGE GET [] []VOLTAGE LIST [] []

    VOLUME Local storage volume management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    VOLUME ASSOC []VOLUME CALL []VOLUME CREATE VOLUME DELETEVOLUME GET [] []VOLUME LIST [] []VOLUME SET []

    VOLUMEQUOTASETTING Associates the disk quota setting with a specific disk volume.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    VOLUMEQUOTASETTING ASSOC []VOLUMEQUOTASETTING CREATE

    VOLUMEQUOTASETTING DELETEVOLUMEQUOTASETTING GET [] []VOLUMEQUOTASETTING LIST [] []

    VOLUMEUSERQUOTA Per user storage volume quota management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    VOLUMEUSERQUOTA ASSOC []

    VOLUMEUSERQUOTA CREATE VOLUMEUSERQUOTA DELETEVOLUMEUSERQUOTA GET [] []VOLUMEUSERQUOTA LIST [] []VOLUMEUSERQUOTA SET []

  • 8/13/2019 Windows Wmic Command Line Command

    22/24

    WMISET WMI service operational parameters management.

    ( [WMIObject] | [] | [] )[].

    USAGE:

    WMISET ASSOC []WMISET CREATE WMISET DELETE

    WMISET GET [] []WMISET LIST [] []WMISET SET []

    more information on a specific alias, type: alias /?

    CLASS Escapes to full WMI schema.

    USAGE:

    CLASS [ []]

    PATH Escapes to full WMI object paths.

    USAGE:

    PATH ( | ( [WHERE ])) []

    CONTEXT Displays the state of all the global switches.

    QUIT/EXIT Exits the program.

    more information on CLASS/PATH/CONTEXT, type: (CLASS | PATH | CONTEXT) /?

    amples

    Tip:In order to run the wmic command you must have administrative rights.

    wmic

    Running wmic alone with no addition will take you to the wmic:root\cli>prompt. Within this prompt type /? to get

    help at any time or /? get get additional help with that alias. To quit from the wmic prompt type quitor 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 /?

  • 8/13/2019 Windows Wmic Command Line Command

    23/24

    Name

    C:

    D:

    E:

    wmic os list brief

    This command would give you brief information about the operating system, as shown in the below example.

    BuildNumberOrganization RegisteredUserSerialNumber 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 above command is a little may appear involved, but is still relatively simple. First the /Output: is outputting the

    commands output to the bios.html file, which will be saved into the directory you're currently in. Next, the wmicBIOS get command will get 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 Ma nufa ct ur er Na me Se ria lNumbe r Ve rs ion

    HOPE-PC DELL INC.. Default System BIOS. 123AB12. DELL - 20081105.

    wmic product list brief

    List each of the programs that have been installed on the computer with brief details. Note: This command could take

    a minute or two to complete depending on on how many programs you have installed on the computer and may

    exceed the limit of what can be displayed 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

  • 8/13/2019 Windows Wmic Command Line Command

    24/24

    Display the model, name, and size of the hard drives installed on the computer, as shown in the below example.

    Model Name Size

    WDC WD3000HLFS-75G6U1 ATA Device \\.\PHYSICALDRIVE0 300066439680

    TRUSTED Mass Storage USB Device \\.\PHYSICALDRIVE1 2199020382720