Академический Документы
Профессиональный Документы
Культура Документы
10
Hello AskPerf Blog Readers! This mornings post is going to be more of a reference point for all those WMI junkies out there. Have
you ever wanted to test WMI using the command line (outside of VBSCRIPT)? If so, then WMIC is the tool for you. In its simplest
form, WMIC is a utility that allows you to interact with WMI from a WMI-aware command-line shell. All WMI objects and their
properties, including their methods, are accessible through the shell, which makes WMIC an advanced systems management
console.
This blog will assume that you already have a grasp of WMI and are looking for more WMI testing options via the Command Line.
With that said, the following is a list of WMIC queries that you can run on your Workstations/Servers.
To execute these queries, run WMIC at a command prompt, followed by one of the following alias/es:
baseboard
bios
bootconfig
cdrom
datafile
dcomapp
desktop
desktopmonitor
diskdrive
diskquota
environment
fsdir
group
idecontroller
irq
job
loadorder
logicaldisk
memcache
memlogical
get AvailableVirtualMemory,
TotalPageFileSpace, TotalPhysicalMemory,
TotalVirtualMemory
memphysical
netclient
netlogin
netprotocol
netuse
nic
nicconfig
nicconfig
nicconfig
nicconfig
ntdomain
ntevent
ntevent
ntevent
onboarddevice
os
os
pagefile
pagefileset
partition
printer
printjob
process
product
qfe
quotasetting
recoveros
Registry
scsicontroller
server
get ErrorsAccessPermissions,
ErrorsGrantedAccess, ErrorsLogon,
ErrorsSystem, FilesOpen, FileDirectorySearches
service
share
sounddev
startup
sysaccount
sysdriver
tapedrive
timezone
useraccount
*UPDATE* 12/13/2012
memorychip
In troubleshooting WMI issues here on the Performance team, I often run the following commands to test WMI locally and remotely:
Additional Resources
WMIC verbs
-Blake Morrison