wmic是“ WMI console”的缩写,是用于查询WMI(Windows管理规范)条目的命令行命令。
从2012年开始,WMIC被弃用,而使用PowerShell cmdlet执行等效的CIM操作,例如get-wmiobject,invoke-wmimethod,Get-wmiobject和gwmi。
查看英文版
1 wmic 运行系统环境
2 wmic 语法
3 wmic 别名
4 wmic 示例
Windows xp
Windows vista
Windows 7
Windows 8
Windows 10
wmic [global switches] command
Global switches
/NAMESPACE |
别名要针对的名称空间的路径。命名空间始终是相对的。也就是说,如果命名空间不是以“ \\”开头,则假定它相对于当前命名空间。 USAGE: /NAMESPACE:<namespace> |
/ROLE |
ROLE - 包含别名定义的角色的路径可用于实用程序会话。 USAGE: /ROLE:<namespace> 注意:角色是名称空间,应以相同的方式处理-即,相对路径应具有适当的行为(默认名称空间为'\\ root \ cli')。 |
/NODE |
NODE - 指定别名将对哪些服务器进行操作。 USAGE: /NODE:<machine id list> NOTE: <machine id list> ::= <@filename | machine id> | <@filename | machine id> <,machine id list> |
/IMPLEVEL |
IMPLEVEL - 确定命令行应模拟的级别。默认值为“假冒”。 USAGE: /IMPLEVEL:<implevel>[/AUTHORITY:<authority type>] 各种implevels如下: Impersonation Level ------------------ Anonymous Identify Impersonate Delegate 注意:使用/ AUTHORITY开关,用于指定权限类型。 |
/AUTHLEVEL |
AUTHLEVEL - 指定命令行应验证的级别。默认值为“ Pktprivacy”。 USAGE: /AUTHLEVEL:<authlevel> 各种authlevel如下: Authlevel --------- Default None Connect Call Pkt Pktintegrity Pktprivacy |
/LOCALE |
LOCALE - 指定命令行应使用的语言ID。 USAGE: /LOCALE:<locale identifier> 注意:“ LOCALE”开关的参数格式为MS_XXX。 英语的XXX为409,芬兰的XXX为40b。 |
/PRIVILEGES |
PRIVILEGES - 启用或禁用所有特权。 USAGE: /PRIVILEGES:<option> 注意:<option>的允许值为ENABLE或DISABLE。 |
/TRACE |
TRACE - 指定在请求处理期间是否将输出调试信息复制到stderr。 USAGE: /TRACE:<option> 注意:<option>的允许值为ON或OFF。 |
/RECORD |
RECORD - 将所有输入的命令和WMIC的输出记录到XML格式的文件中。 USAGE: /RECORD:<filepath> |
/INTERACTIVE |
INTERACTIVE - 设置或重置交互模式。 USAGE: /INTERACTIVE:<option> 注意:<option>的允许值为ON或OFF。 |
/FAILFAST |
FAILFAST - 设置或重置FailFast模式。 USAGE: /FAILFAST:<option> 注意:<option>的允许值为ON或OFF。 |
/USER |
USER - 提供会话期间要使用的用户。 USAGE: /USER:<userid> .注意:应以<domain>\<user>的形式提供用户。 |
/PASSWORD |
PASSWORD - 提供用于登录此会话的密码。 USAGE: /PASSWORD:<password> |
/OUTPUT |
OUTPUT - 指定输出重定向的模式。 USAGE: /OUTPUT:<outputspec> 注意:<outputspec>:: =(STDOUT | CLIPBOARD | < filename >) STDOUT-输出重定向到STDOUT。 CLIPBOARD-输出复制到CLIPBOARD。 <filename> - 输出被写入指定的文件。 |
/APPEND |
APPEND - 指定输出重定向的模式。 USAGE: /APPEND:<outputspec> 注意:<outputspec>:: =(STDOUT | CLIPBOARD | < filename >) STDOUT-输出重定向到STDOUT。 CLIPBOARD-输出复制到CLIPBOARD。 <filename> - 输出被写入指定的文件。 |
/AGGREGATE |
AGGREGATE - 确定显示结果的模式。 USAGE: /AGGREGATE:<option>. 注意:<option>的允许值为ON或OFF。 |
/AUTHORITY |
AUTHORITY - 指定连接的<authority type>。 USAGE: /AUTHORITY:<authority type> |
/? |
/? - 显示帮助命令的规范/语法。 USAGE: /?:[<helpType>] 注意:<helpType> 允许的值是Brief或FULL。 |
如果开关值包含特殊字符(例如“-”或“ /”),请用双引号引起来。
查看英文版
ALIAS |
访问本地系统上可用的别名。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
基板(也称为主板或系统板)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: BASEBOARD ASSOC [<format specifier>] BASEBOARD CREATE <assign list> BASEBOARD DELETE BASEBOARD GET [<property list>] [<get switches>] BASEBOARD LIST [<list format>] [<list switches>] |
BIOS |
基本输入/输出服务(BIOS)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: BIOS ASSOC [<format specifier>] BIOS CREATE <assign list> BIOS DELETE BIOS GET [<property list>] [<get switches>] BIOS LIST [<list format>] [<list switches>] |
BOOTCONFIG |
引导配置管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: CDROM ASSOC [<format specifier>] CDROM CREATE <assign list> CDROM DELETE CDROM GET [<property list>] [<get switches>] CDROM LIST [<list format>] [<list switches>] |
COMPUTERSYSTEM |
计算机系统管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: CPU ASSOC [<format specifier>] CPU CREATE <assign list> CPU DELETE CPU GET [<property list>] [<get switches>] CPU LIST [<list format>] [<list switches>] |
CSProduct |
来自SMBIOS的计算机系统产品信息。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: CSProduct ASSOC [<format specifier>] CSProduct CREATE <assign list> CSProduct DELETE CSProduct GET [<property list>] [<get switches>] CSProduct LIST [<list format>] [<list switches>] |
DATAFILE |
数据文件管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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应用程序管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DCOMAPP ASSOC [<format specifier>] DCOMAPP CREATE <assign list> DCOMAPP DELETE DCOMAPP GET [<property list>] [<get switches>] DCOMAPP LIST [<list format>] [<list switches>] |
DESKTOP |
用户的桌面管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DESKTOP ASSOC [<format specifier>] DESKTOP CREATE <assign list> DESKTOP DELETE DESKTOP GET [<property list>] [<get switches>] DESKTOP LIST [<list format>] [<list switches>] |
DESKTOPMONITOR |
桌面监视器管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DESKTOPMONITOR ASSOC [<format specifier>] DESKTOPMONITOR CREATE <assign list> DESKTOPMONITOR DELETE DESKTOPMONITOR GET [<property list>] [<get switches>] DESKTOPMONITOR LIST [<list format>] [<list switches>] |
DEVICEMEMORYADDRESS |
设备内存地址管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DEVICEMEMORYADDRESS ASSOC [<format specifier>] DEVICEMEMORYADDRESS CREATE <assign list> DEVICEMEMORYADDRESS DELETE DEVICEMEMORYADDRESS GET [<property list>] [<get switches>] DEVICEMEMORYADDRESS LIST [<list format>] [<list switches>] |
DISKDRIVE |
物理磁盘驱动器管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DISKDRIVE ASSOC [<format specifier>] DISKDRIVE CREATE <assign list> DISKDRIVE DELETE DISKDRIVE GET [<property list>] [<get switches>] DISKDRIVE LIST [<list format>] [<list switches>] |
DISKQUOTA |
NTFS卷的磁盘空间使用情况。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
直接内存访问(DMA)通道管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: DMACHANNEL ASSOC [<format specifier>] DMACHANNEL CREATE <assign list> DMACHANNEL DELETE DMACHANNEL GET [<property list>] [<get switches>] DMACHANNEL LIST [<list format>] [<list switches>] |
ENVIRONMENT |
系统环境设置管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
文件系统目录条目管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
组帐户管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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控制器管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: IDECONTROLLER ASSOC [<format specifier>] IDECONTROLLER CREATE <assign list> IDECONTROLLER DELETE IDECONTROLLER GET [<property list>] [<get switches>] IDECONTROLLER LIST [<list format>] [<list switches>] |
IRQ |
中断请求线(IRQ)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: IRQ ASSOC [<format specifier>] IRQ CREATE <assign list> IRQ DELETE IRQ GET [<property list>] [<get switches>] IRQ LIST [<list format>] [<list switches>] |
JOB |
提供对使用计划服务计划的作业的访问。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
定义执行依赖性的系统服务的管理。 LOADORDER - 管理定义执行依赖项的系统服务。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: LOADORDER ASSOC [<format specifier>] LOADORDER CREATE <assign list> LOADORDER DELETE LOADORDER GET [<property list>] [<get switches>] LOADORDER LIST [<list format>] [<list switches>] |
LOGICALDISK |
本地存储设备管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
登录会话。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: LOGON ASSOC [<format specifier>] LOGON CREATE <assign list> LOGON DELETE LOGON GET [<property list>] [<get switches>] LOGON LIST [<list format>] [<list switches>] |
MEMCACHE |
缓存内存管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: MEMCACHE ASSOC [<format specifier>] MEMCACHE CREATE <assign list> MEMCACHE DELETE MEMCACHE GET [<property list>] [<get switches>] MEMCACHE LIST [<list format>] [<list switches>] |
MEMORYCHIP |
内存芯片信息。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: MEMORYCHIP ASSOC [<format specifier>] MEMORYCHIP CREATE <assign list> MEMORYCHIP DELETE MEMORYCHIP GET [<property list>] [<get switches>] MEMORYCHIP LIST [<list format>] [<list switches>] |
MEMPHYSICAL |
计算机系统的物理内存管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: MEMPHYSICAL ASSOC [<format specifier>] MEMPHYSICAL CREATE <assign list> MEMPHYSICAL DELETE MEMPHYSICAL GET [<property list>] [<get switches>] MEMPHYSICAL LIST [<list format>] [<list switches>] |
NETCLIENT |
网络客户端管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: NETCLIENT ASSOC [<format specifier>] NETCLIENT CREATE <assign list> NETCLIENT DELETE NETCLIENT GET [<property list>] [<get switches>] NETCLIENT LIST [<list format>] [<list switches>] |
NETLOGIN |
(特定用户的)网络登录信息管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: NETLOGIN ASSOC [<format specifier>] NETLOGIN CREATE <assign list> NETLOGIN DELETE NETLOGIN GET [<property list>] [<get switches>] NETLOGIN LIST [<list format>] [<list switches>] |
NETPROTOCOL |
协议(及其网络特征)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: NETPROTOCOL ASSOC [<format specifier>] NETPROTOCOL CREATE <assign list> NETPROTOCOL DELETE NETPROTOCOL GET [<property list>] [<get switches>] NETPROTOCOL LIST [<list format>] [<list switches>] |
NETUSE |
主动网络连接管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: NETUSE ASSOC [<format specifier>] NETUSE CREATE <assign list> NETUSE DELETE NETUSE GET [<property list>] [<get switches>] NETUSE LIST [<list format>] [<list switches>] |
NIC |
网络接口控制器(NIC)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: NIC ASSOC [<format specifier>] NIC CREATE <assign list> NIC DELETE NIC GET [<property list>] [<get switches>] NIC LIST [<list format>] [<list switches>] |
NICCONFIG |
网络适配器管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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域管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
NT事件日志中的条目。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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文件管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
管理主板(系统板)中内置的通用适配器设备。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: ONBOARDDEVICE ASSOC [<format specifier>] ONBOARDDEVICE CREATE <assign list> ONBOARDDEVICE DELETE ONBOARDDEVICE GET [<property list>] [<get switches>] ONBOARDDEVICE LIST [<list format>] [<list switches>] |
OS |
已安装的操作系统管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
虚拟内存文件交换管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: PAGEFILE ASSOC [<format specifier>] PAGEFILE CREATE <assign list> PAGEFILE DELETE PAGEFILE GET [<property list>] [<get switches>] PAGEFILE LIST [<list format>] [<list switches>] |
PAGEFILESET |
页面文件设置管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
管理物理磁盘的分区。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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端口管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: PORT ASSOC [<format specifier>] PORT CREATE <assign list> PORT DELETE PORT GET [<property list>] [<get switches>] PORT LIST [<list format>] [<list switches>] |
PORTCONNECTOR |
物理连接端口管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: PORTCONNECTOR ASSOC [<format specifier>] PORTCONNECTOR CREATE <assign list> PORTCONNECTOR DELETE PORTCONNECTOR GET [<property list>] [<get switches>] PORTCONNECTOR LIST [<list format>] [<list switches>] |
PRINTER |
打印机设备管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
打印机设备配置管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: PRINTERCONFIG ASSOC [<format specifier>] PRINTERCONFIG CREATE <assign list> PRINTERCONFIG DELETE PRINTERCONFIG GET [<property list>] [<get switches>] PRINTERCONFIG LIST [<list format>] [<list switches>] |
PRINTJOB |
打印作业管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
流程管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
安装包任务管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
快速修复工程。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: QFE ASSOC [<format specifier>] QFE CREATE <assign list> QFE DELETE QFE GET [<property list>] [<get switches>] QFE LIST [<list format>] [<list switches>] |
QUOTASETTING |
设置卷上磁盘配额的信息。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
远程桌面连接权限管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
特定网络适配器上的远程桌面连接管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
特定远程桌面连接的权限。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
远程打开或关闭远程桌面侦听器。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
操作系统发生故障时从内存收集的信息。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
计算机系统注册表管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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控制器管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
服务器信息管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SERVER ASSOC [<format specifier>] SERVER CREATE <assign list> SERVER DELETE SERVER GET [<property list>] [<get switches>] SERVER LIST [<list format>] [<list switches>] |
SERVICE |
服务应用程序管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
卷影副本管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
卷影副本存储区管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
共享资源管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
管理系统上安装的软件产品的元素。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SOFTWAREELEMENT ASSOC [<format specifier>] SOFTWAREELEMENT CREATE <assign list> SOFTWAREELEMENT DELETE SOFTWAREELEMENT GET [<property list>] [<get switches>] SOFTWAREELEMENT LIST [<list format>] [<list switches>] |
SOFTWAREFEATURE |
管理SoftwareElement的软件产品子集。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
声音设备管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SOUNDDEV ASSOC [<format specifier>] SOUNDDEV CREATE <assign list> SOUNDDEV DELETE SOUNDDEV GET [<property list>] [<get switches>] SOUNDDEV LIST [<list format>] [<list switches>] |
STARTUP |
管理用户登录计算机系统时自动运行的命令。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: STARTUP ASSOC [<format specifier>] STARTUP CREATE <assign list> STARTUP DELETE STARTUP GET [<property list>] [<get switches>] STARTUP LIST [<list format>] [<list switches>] |
SYSACCOUNT |
系统帐户管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SYSACCOUNT ASSOC [<format specifier>] SYSACCOUNT CREATE <assign list> SYSACCOUNT DELETE SYSACCOUNT GET [<property list>] [<get switches>] SYSACCOUNT LIST [<list format>] [<list switches>] |
SYSDRIVER |
基本服务的系统驱动程序的管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
物理系统机箱管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SYSTEMENCLOSURE ASSOC [<format specifier>] SYSTEMENCLOSURE CREATE <assign list> SYSTEMENCLOSURE DELETE SYSTEMENCLOSURE GET [<property list>] [<get switches>] SYSTEMENCLOSURE LIST [<list format>] [<list switches>] |
SYSTEMSLOT |
管理物理连接点,包括端口,插槽和外围设备以及专有连接点。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: SYSTEMSLOT ASSOC [<format specifier>] SYSTEMSLOT CREATE <assign list> SYSTEMSLOT DELETE SYSTEMSLOT GET [<property list>] [<get switches>] SYSTEMSLOT LIST [<list format>] [<list switches>] |
TAPEDRIVE |
磁带机管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: TAPEDRIVE ASSOC [<format specifier>] TAPEDRIVE CREATE <assign list> TAPEDRIVE DELETE TAPEDRIVE GET [<property list>] [<get switches>] TAPEDRIVE LIST [<list format>] [<list switches>] |
TEMPERATURE |
温度传感器(电子温度计)的数据管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: TEMPERATURE ASSOC [<format specifier>] TEMPERATURE CREATE <assign list> TEMPERATURE DELETE TEMPERATURE GET [<property list>] [<get switches>] TEMPERATURE LIST [<list format>] [<list switches>] |
TIMEZONE |
时区数据管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: TIMEZONE ASSOC [<format specifier>] TIMEZONE CREATE <assign list> TIMEZONE DELETE TIMEZONE GET [<property list>] [<get switches>] TIMEZONE LIST [<list format>] [<list switches>] |
UPS |
不间断电源(UPS)管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: UPS ASSOC [<format specifier>] UPS CREATE <assign list> UPS DELETE UPS GET [<property list>] [<get switches>] UPS LIST [<list format>] [<list switches>] |
USERACCOUNT |
用户帐户管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
电压传感器(电子电压表)数据管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: VOLTAGE ASSOC [<format specifier>] VOLTAGE CREATE <assign list> VOLTAGE DELETE VOLTAGE GET [<property list>] [<get switches>] VOLTAGE LIST [<list format>] [<list switches>] |
VOLUME |
本地存储量管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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 |
将磁盘配额设置与特定的磁盘卷关联。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: VOLUMEQUOTASETTING ASSOC [<format specifier>] VOLUMEQUOTASETTING CREATE <assign list> VOLUMEQUOTASETTING DELETE VOLUMEQUOTASETTING GET [<property list>] [<get switches>] VOLUMEQUOTASETTING LIST [<list format>] [<list switches>] |
VOLUMEUSERQUOTA |
每用户存储卷配额管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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服务操作参数管理。 (<alias> [WMIObject] | <alias> [<path where>] | [<alias>] <path where>) [<verb clause>]. 用法: 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>] |
有关特定别名的更多信息,请键入:alias /?在命令提示符下。
CLASS |
按 Esc 键可获取完整 WMI 架构。 用法: CLASS <class path expr> [<standardverb> [<verb switches>]] |
PATH |
按 Esc 键可获取完整 WMI 对象路径。 用法: PATH (<path expr> | (<class path expr> [WHERE <where clause>])) [<verb clause>] |
CONTEXT | 显示所有全局开关的状态。 |
QUIT/EXIT | 退出程序。 |
有关 CLASS/PATH/CONTEXT 的详细信息,请键入: (CLASS | PATH | CONTEXT) /?
查看英文版
wmic
单独运行wmic会将您带到wmic:root \ cli> 提示符。在提示符下,键入/?随时获得帮助或 alias/?获得有关该别名的其他帮助。要从wmic提示符退出,请键入quit或exit。
wmic logicaldisk get name
显示计算机上的每个逻辑磁盘驱动器,如下所示。如果要查看此命令的所有选项,包括名称,请键入:wmic logicaldisk get /?在提示符下。
Name
C:
D:
E:
wmic os list brief
该命令将为您提供有关操作系统的简要信息,如下例所示。
内部编号 | 组织 | 注册用户 | 序列号 | 系统目录 | 版本号 |
7601 | Computer Hope | Mrhope | 00123-045-6789012-34567 | C:\ Windows \ system32 | 6.1.7601 |
wmic printer list status
列出计算机上安装的每台打印机的打印机状态。
WMIC /Output:bios.html BIOS Get Manufacturer,Name,Version /Format:htable
上面的命令可能看起来很复杂,但仍然相对简单。首先,/ Output:将命令的输出发送到bios.html文件,该文件保存在当前目录中。接下来,wmic BIOS get命令将检索BIOS的制造商,名称,序列号和版本。最后,/ format:htable将结果格式化为HTML表。以下是输出如何显示在bios.html文件中的示例。
1个Win32_BIOS实例节点 | 制造商 | 名称 | 序列号 | 版本 |
HOPE-PC | DELL INC.. | Default System BIOS. | 123AB12 . | DELL - 20081105. |
wmic product list brief
列出计算机上安装的每个程序,并附带简要说明。注意:此命令可能需要一两分钟才能完成,具体取决于您在计算机上安装了多少个程序。此外,输出可能超出窗口中可以显示的限制。如上例中所述,该命令也可以制成HTML表。
wmic diskdrive get model,name,size
显示计算机上安装的硬盘驱动器的型号,名称和大小,如下例所示。
模型 | 名称 | 尺寸 |
WDC WD3000HLFS-75G6U1 ATA设备 | \\.\ PHYSICALDRIVE0 | 300066439680 |
值得信赖的大容量USB存储设备 | \\.\ PHYSICALDRIVE1 |
2199020382720 |
要运行wmic命令,您必须具有管理权限。
查看英文版
未知的网友