BAT file (some commands)

ECHO : write on CMD (MS DOS) screen

@ECHO : @ at the beginning mean “do not show this command on running screen”

@REM :  “NOTE sentence” – write a note in a batch file.

:POINT1  : Denote a point in batch file

GOTO POINT1 : jump to POINT1, skip all command below GOTO and above POINT1

@ECHO This text > file.txt : overwrite file

@ECHO Thi text >> file.txt : append to the file

%VARIABLE%  : variable in batch file, locate between %…%

@SET VAR=This Value   : assign variable in batch file

@SET VAR=%VAR% and This Text    (new VAT is “This Value and This Text”)

@SET VAR=2

@SET /A VAR=%VAR%+1 (/A mean attribute, result is VAR is 2 + 1 = 3)

@IF %VAR%==0 (command) ELSE (command)

@IF %VAR%==0 DO (command)

@ECHO This Text>File.txt  :  ECHO command writes text to file with ANSI encoding

@wmic.exe /APPEND:File.txt /NODE:%PC_Name% CPU GET SYSTEMNAME  :  WMIC command writes text to file with UNICODE encoding.

 

WMIC (Windows Management Instrumentation Command) example

WMIC.exe

Windows Management Instrumentation Command.
Read a huge range of information about local or remote computers. Also provides a way to make configuration changes to multiple remote machines. WMIC is available on Vista/Windows 7, Windows XP Professional, but not Windows XP Home.

Syntax
   Retrieve information about <Alias>:
      WMIC [global_switches] [/locale:ms_409] <alias> [options] [format]

   Interactive mode:
      WMIC

Aliases:
 ALIAS               - Access local system aliases [CALL]

 BASEBOARD           - Base board management (motherboard or system board) 
 BIOS                - BIOS management (Basic input/output services) 
 BOOTCONFIG          - Boot configuration

 CDROM               - CD-ROM
 COMPUTERSYSTEM      - Computer system [CALL/SET]
 CPU                 - CPU
 CSPRODUCT           - Computer system product information from SMBIOS. 

 DATAFILE            - DataFiles [CALL]
 DCOMAPP             - DCOM Applications.
 DESKTOP             - User's Desktop
 DESKTOPMONITOR      - Desktop Monitor
 DEVICEMEMORYADDRESS - Device memory addresses
 DISKDRIVE           - Physical disk drive
 DISKQUOTA           - Disk space usage for NTFS volumes.[SET]
 DMACHANNEL          - Direct memory access (DMA) channel

 ENVIRONMENT         - System environment settings [SET]
 FSDIR               - Filesystem directory entry [CALL]

 GROUP               - Group account [CALL]

 IDECONTROLLER       - IDE Controller
 IRQ                 - Interrupt request line

 JOB                 - Jobs scheduled using the schedule service.[CALL]

 LOADORDER           - System services that define execution dependencies. 
 LOGICALDISK         - Local storage devices [CALL/SET]
 LOGON               - LOGON Sessions.

 MEMCACHE            - Cache memory
 MEMLOGICAL          - System memory, layout and availability
 MEMPHYSICAL         - Physical memory management

 NETCLIENT           - Network Client management.
 NETLOGIN            - Network login information for a particular user. 
 NETPROTOCOL         - Protocols (and their network characteristics).
 NETUSE              - Active network connection.
 NIC                 - Network Interface Controller (NIC)
 NICCONFIG           - Network adapter. [CALL] 
 NTDOMAIN            - NT Domain. [SET]  
 NTEVENT             - NT Event Log.  
 NTEVENTLOG          - NT eventlog file [CALL/SET]

 ONBOARDDEVICE       - Common adapter devices built into the motherboard.
 OS                  - Operating System/s [CALL/SET]

 PAGEFILE            - Virtual memory file swapping
 PAGEFILESET         - Page file settings [SET]
 PARTITION           - Partitioned areas of a physical disk.
 PORT                - I/O ports
 PORTCONNECTOR       - Physical connection ports
 PRINTER             - Printer device [CALL/SET]
 PRINTERCONFIG       - Printer device configuration  
 PRINTJOB            - Print job [CALL]
 PROCESS             - Processes [CALL]*
 PRODUCT             - Windows Installer [CALL]

 QFE                 - Quick Fix Engineering (patches)
 QUOTASETTING        - Setting information for disk quotas on a volume. [SET]

 REGISTRY            - Computer system registry [SET]

 SCSICONTROLLER      - SCSI Controller [CALL]
 SERVER              - Server information 
 SERVICE             - Service application [CALL]
 SHARE               - Shared resourcees [CALL]
 SOFTWAREELEMENT     - Elements of a software product*
 SOFTWAREFEATURE     - Subsets of SoftwareElement. [CALL]*
 SOUNDDEV            - Sound Devices 
 STARTUP             - Commands that run automatically when users logon
 SYSACCOUNT          - System account  
 SYSDRIVER           - System driver for a base service. [CALL]
 SYSTEMENCLOSURE     - Physical system enclosure
 SYSTEMSLOT          - Physical connection points including ports,
                       slots and peripherals, and proprietary connections points.

 TAPEDRIVE           - Tape drives  
 TEMPERATURE         - Temperature sensor (electronic thermometer).
 TIMEZONE            - Time zone data 

 UPS                 - Uninterruptible power supply (UPS) 
 USERACCOUNT         - User accounts [CALL/SET]

 VOLTAGE             - Voltage sensor (electronic voltmeter) data
 VOLUME              - Local storage volume [CALL/SET]
 VOLUMEQUOTASETTING  - Associates the disk quota setting with a specific disk volume. [SET]

 WMISET              - WMI service operational parameters [SET]

New aliases in Windows 2003: 
 MEMORYCHIP          - Memory chip information.
 RDACCOUNT           - Remote Desktop connection permission [CALL]
 RDNIC               - Remote Desktop connection on a specific network adapter [CALL/SET]
 RDPERMISSIONS       - Permissions to a specific Remote Desktop connection [CALL]
 RDTOGGLE            - Turn Remote Desktop listener on or off remotely[CALL]
 RECOVEROS           - Blue Screen Information [SET]
 SHADOWCOPY          - Shadow copy management [CALL]
 SHADOWSTORAGE       - Shadow copy storage areas [CALL/SET]
 VOLUMEUSERQUOTA     - Per user storage volume quotas  [SET]

Options

By default an alias will return a standard LIST of information, you can also choose to GET one or more specific properties.

Configuration changes can be made, where indicated above with: [CALL or SET ]

The CREATE and DELETE options allow you to change the WMI schema itself.

   alias 
   alias LIST [BRIEF | FULL | INSTANCE | STATUS |SYSTEM | WRITEABLE]
                [/TRANSLATE:BasicXml|NoComma ]
                   [/EVERY:no_secs] [/FORMAT:format]
   alias GET [property list]
                [/VALUE ] [/ALL ] [/TRANSLATE:BasicXml|NoComma ]
                   [/EVERY:no_secs] [/FORMAT:format]
   alias CALL method_name [parameters]
   alias SET [assignments]
   alias CREATE 
   alias DELETE
   alias ASSOC [/RESULTCLASS:classname] [/RESULTROLE:rolename][/ASSOCCLASS:assocclass]

For more help
   WMIC /alias /?
   WMIC /alias option /?
   e.g.
   WMIC /BIOS /CALL /?
   WMIC /MEMLOGICAL /SET /?

The order of the /FORMAT and /TRANSLATE switches is significant: if /TRANSLATE follows /FORMAT, the output is formatted first and then translated.

All the options above can be extended with a WHERE clause, best shown by the examples below:

Format:

Format defines the layout of the information, XML output is automatically formatted using a default style sheet, while other formats (HTML, Table, MOF, Raw XML etc) can be specified using /FORMAT: stylesheet_name

Stylesheets supplied with WMIC:

    csv.xsl, hform.xsl, htable-sortby.xsl, htable.xsl
    texttable.xsl, textvaluelist.xsl, xml.xsl

All output files are unicode text (convert to ASCII with TYPE) Tab Separated Values (.tsv) can be opened in excel

The PROCESS alias can be used to start a new installation process, if doing this across the network, place the installer files on a share with permissions EVERYONE : Read Only. This is because network credentials will be dropped when jumping from one remote machine to another (unless you have kerberos configured).

Examples

WMIC OS 

WMIC OS LIST BRIEF

WMIC OS GET csname, locale, bootdevice

WMIC OS GET osarchitecture /value

WMIC OS GET localdatetime

WMIC NTEVENT where LogFile='system'

WMIC NTEVENT where "LogFile='system' and Type>'0'" 

WMIC SERVICE where (state=”running”) GET caption, name, state > services.tsv

WMIC SERVICE where caption='TELNET' CALL STARTSERVICE

WMIC PRINTER LIST STATUS

WMIC PRINTER where PortName="LPT1:" GET PortName, Name, ShareName
 
WMIC /INTERACTIVE:ON PRINTER where PortName="LPT1:" DELETE

WMIC PROCESS where name='evil.exe' delete

WMIC /output:"%computername%.txt" MEMORYCHIP where "memorytype=17" get Capacity

WMIC /node:remote_computer PROCESS call create "netstat.exe -ano > C:\output.txt"

WMIC /node:@workstns.txt /failfast:on PROCESS call create "\\server\share\installer.cmd"

Interactive mode:
C:> WMIC
wmic:root\cli> OS get csname
wmic:root\cli> quit

Notes

WMIC is available on XP Professional and all later versions of Windows.
Under XP the global option /locale:ms_409 is required (for English US. language)

To run WMIC requires administrator rights.

The last element returned by WMIC is a single <CR> character (an empty line), when running WMIC in a FOR loop you might need to remove this, particularly if delayed expansion is involved.

The number of WMI properties that can be monitored (and the number of WMI providers) has increased with every new version of Windows.

When you type WMIC for the first time all the aliases are compiled. The second, and subsequent times you run WMIC, it will start immediately.

Running WMIC within a batch file it can sometimes hang, possible workarounds for this:
START “” /W CMD /C WMIC options
WMIC options… <NUL

* WMI information for installed software packages (PACKAGE and SOFTWAREFEATURE) is often incomplete and inconsistent for a variety of historical reasons. A more reliable method is to retrieve a list of installed programs directly from the Add/Remove list in the registry, with a WSH script like this from Torgeir Bakken.

Windows wmic command line command

Windows wmic command line command

Quick links

About wmic
Availability
Wmic syntax
Wmic examples

About wmic

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

Availability

The wmic command is an external command that is available in the below Microsoft operating systems as wmic.exe.

Windows XP professional
Windows 2003
Windows Vista
Windows 7
Windows 8

Wmic syntax

[global switches] <command>

The following global switches are available:

/NAMESPACE NAMESPACE – Path for the namespace the alias is to operate against. Namespaces are always relative i.e. if the namespace does not begin with a ‘\\’ it will be 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 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:<machine id list>
NOTE: <machine id list> ::= <@filename | machine id> | <@filename | machine id> <,machine id list>

/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 will be redirected to the STDOUT.
CLIPBOARD – Output will be copied on to CLIPBOARD.
<filename> – Output will be written to the specified file.

/APPEND APPEND – Specifies the mode for output redirection.

USAGE:

/APPEND:<outputspec>
NOTE: <outputspec> ::= (STDOUT | CLIPBOARD | <filename>)
STDOUT – Output will be redirected to the STDOUT.
CLIPBOARD – Output will be copied on to CLIPBOARD.
<filename> – Output will be 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.

NOTE: 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 that will be 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 /?

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) /?

Wmic examples

Tip: To run the wmic command you must have administrative rights.

wmic

Running wmic alone takes you to the wmic:root\cli> prompt. Within this 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 /?

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 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 wmic BIOS 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 Manufacturer Name SerialNumber Version
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 how many programs you have installed on the computer and may exceed the limit of what can show 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 300066439680
TRUSTED Mass Storage USB Device \\.\PHYSICALDRIVE1 2199020382720

Escape Characters in DOS (Special characters in DOS)

All DOS versions interpret certain characters before executing a command.
Some well know examples are the percent sign ( % ), and the redirection symbols ( < | > ).

Windows 95/98 and NT, and OS/2 too, also interpret double quotes ( " ) and ampersands ( & ), as shown in theConditional Execution page.

In batch files, the percent sign may be “escaped” by using a double percent sign ( %% ).
That way, a single percent sign will be used as literal within the command line, instead of being further interpreted.

In Windows 95/98 and NT, and OS/2 too, redirection symbols may be escaped by placing them between double quotes ( ">" ).
However, the quotes themselves will be passed to the command too, unlike the double percent sign.

Windows NT and OS/2 also allow the use of carets ( ^ ) to escape special characters. Even linefeeds can be escaped this way, as is shown in the Useless Tips page.

If you intend to “nest” commands with escaped characters, you may need to escape the escape character itself too.
In general, that won’t make it any easier to read or debug your batch files, however.

Since the introduction of delayed variable expansion a new challenge is to escape exclamation marks, the “delayed” version of the percent sign.
Unlike percent signs, that can be escaped by doubling them, exclamation marks cannot be escaped by adding an extra exclamation mark.
Nor does a caret before the exclamation mark work, unless quoted (i.e. ECHO ^! will fail to display an exclamation mark, whereas ECHO "^!" will display a quoted exclamation mark: "!").
Jaime Ramos sent me this link where the solution can be found: use ^^!.
The trick is that a single caret will be used to escape the exclamation mark in the firt “pass” of command line interpretation, but delayed variable expansion adds a second “pass” where the exclamation mark will be interpreted. If you don’t get it, never mind, just remember the double caret before the exclamation mark.

Using FIND to search files or standard output for a string containing doublequotes used to be a pain… I often usedFINDSTR instead, in these cases.
Robert Cruz explained to me that in this particular case only you need to escape doublequotes by doublequotes, i.e. a single doublequote must be replaced by 2 doublequotes.
He also sent me this link on the subject.

 

Summary

Escape Characters
Character to be escaped Escape Sequence Remark
% %% May not always be required in doublequoted strings, just try
^ ^^ May not always be required in doublequoted strings, but it won’t hurt
& ^&
< ^<
> ^>
| ^|
' ^' Required only in the FOR /F “subject” (i.e. between the parenthesis),unless backq is used
` ^` Required only in the FOR /F “subject” (i.e. between the parenthesis), ifbackq is used
, ^, Required only in the FOR /F “subject” (i.e. between the parenthesis), even in doublequoted strings
; ^;
= ^=
( ^(
) ^)
! ^^! Required only when delayed variable expansion is active
" "" Required only inside the search pattern of FIND
\ \\ Required only inside the regex pattern of FINDSTR
[ \[
] \]
" \"
. \.
* \*
? \?

Install DBAN to a USB Flash Drive using Windows

Run DBAN from a Flash Drive: In the following tutorial, we show you how we created a DBAN USB Flash Drive from Windows using our third party Universal USB Installer.Darik’s Boot and Nuke (DBAN) is a simple bootable data destruction tool created by Darik Horn. It can be used to securely wipe an entire hard drive or an attached external disk (IDE or SCSI), completely deleting all contents of the disk.  Upon completion, you should be able to run DBAN from your USB device.

DBAN Startup Menu Screenshot

DBAN Running From USB

Distribution Home Page: http://www.dban.org

Minimum Flash Drive Capacity: 32MB (11MB free space)

Persistent Feature: No (Unnecessary)

DBAN Live USB Flash Drive Creation Essentials

  • Windows PC to perform conversion
  • dban*.iso
  • 32MB+ USB flash drive (fat32 formatted)
  • Universal USB-Installer (does the conversion)

DBAN Live USB Flash Drive Creation tutorial

  1. Download and run Universal USB Installer, select DBAN from the drop down list and follow the onscreen instructions
  2. Once the installation to USB is complete, restart your PC and set your BIOS or Boot Menu to boot from the USB device, save your changes and reboot

If all went well, you should be booting from your DBAN USB.

Notes: The DBAN autonuke feature may also Nuke the Flash Drive (and as usual, any other drive it detects). To prevent DBAN’s autonuke feature from wiping the thumb drive, pendrivelinux subscriber Lee Sonko suggests the following:

Remove your thumb drive after dban has loaded, but before it has started wiping drives.

Câu đố hóc búa của Einstein chỉ 2% dân số giải được

Vào cuối thế kỉ 19, Einstein ra câu đố này và nói rằng chỉ có nhiều nhất là 2% dân số trên thế giới giải được. Bạn có muốn vào con số ít ỏi thế không? Nếu giải được thì chỉ số IQ của bạn không dưới 140 đâu nhé.

Giả thiết:

1. Có 5 ngôi nhà, mỗi nhà có một màu khác nhau.

2. Trong mỗi nhà ở một người có quốc tịch khác nhau.

3. Mỗi cư dân chỉ thích một loại nước uống, hút thuốc một hãng và nuôi một con vật trong nhà.

4. Cả 5 cư dân không có cùng thích một loại nước uống, hút thuốc cùng một hãng hay nuôi cùng một con vật trong nhà như người hàng xóm của mình.

Câu hỏi: Ai nuôi cá?

Bạn có thêm các chỉ dẫn sau:

1. Người Anh ở trong nhà màu đỏ.

2. Người Thuỵ Điển nuôi chó.

3. Người Đan Mạch thích uống trà.

4. Ngôi nhà màu xanh lá cây nằm bên trái ngôi nhà màu trắng.

5. Người ở nhà màu xanh lá cây thích uống cà phê.

6. Người hút thuốc hiệu Pall Mall nuôi chim.

7. Người ở nhà màu vàng hút thuốc hiệu Dunhill.

8. Người ở nhà nằm giữa thích uống sữa.

9. Người Na-uy ở nhà đầu tiên.

10. Người hút thuốc hiệu Blends ở cạnh nhà người có nuôi mèo.

11. Người có nuôi ngựa ở cạnh nhà người hút thuốc hiệu Dunhill.

12. Người hút thuốc hiệu Blue Master thích uống bia.

13. Người Đức hút thuốc hiệu Prince.

14. Người Na-uy ở cạnh nhà màu xanh lơ.

15. Người hút thuốc hiệu Blends có người hàng xóm thích uống nước khoáng.

Đáp án của câu đố này: Người Đức nuôi cá

Xem thêm:

– Những bài toán hóc búa nhất thế giới

– Những mẹo “tính nhẩm” cực thú vị bạn không thể tìm thấy trong sách giáo khoa

Change BackupExec server name

Problem

How to update media server configuration information, including server name and domain name changes for Backup Exec 2012 and prior versions.

 

Solution

In Backup Exec 2012 and prior versions, the Update Configuration for New Media Server Name option enables an administrator to update the name of a media server if it has been changed, without having to re-install Backup Exec.

The domain name can also be updated if the media server is in a different domain.

Caution: Using Update Configuration for New Media Server Name does not change the media server name in existing backup selection lists. If this task is used to update the media server name, all the selection lists that back up data from that media server must be recreated. Otherwise, the backup jobs will fail. In addition, when creating a restore job that targets the original media server, all data being restored must be redirected to the newly named media server.
You may also make a copy of the Backup Exec Database before running the utility. For that, stop SQL instance service for Backup Exec (SQL Server (BKUPEXEC) and all other BE services. Then from X:\Program Files\Symantec\Backup Exec\Data make a copy of two files bedb_dat.mdf and bedb_log.ldf. After making a copy, start the SQL service first and then start all BE services and follow the below steps.

To use the Update Configuration for New Media Server Name task:

Location of BEUtility : X:\Program Files\Dymantec\Backup Exec, where X is the drive where Backup Exec is installed

1.  Start BEUtility.

2.  Select a media server from either a media server group or from the All Media Servers subnode that has been renamed.

3. On the task pane, under Services Tasks, click Update Configuration for New Media Server Name. (Figure 1)

Figure 1

4. Make changes as appropriate:

Update Configuration for New Media Server Name fields

Item Description
Current domain name The new domain name, of which the media server is now a member.
Current media server name The new computer name of the media server.
Previous domain name The previous domain name, of which the media server was a member
Previous media server name The previous media server name.

5. Click OK.

6. When the operation completes, click Close.