"使用WMIC命令查看硬件参数" 修訂間的差異
出自 YTYZX有图有真相的百科
(创建页面,内容为“Windows Management Instrumentation Command-line(WMIC)”) |
小 (恢复45.77.171.9(讨论)的编辑至137.201.242.130的最后版本) |
||
(未顯示由 4 位使用者於中間所作的 7 次修訂) | |||
行 1: | 行 1: | ||
− | + | 使用WMIC(Windows Management Instrumentation Command-line) 命令可直接查看硬件参数。 | |
+ | 1.以管理员模式运行CMD命令。 | ||
+ | [[File:Runasadmin.png]] | ||
+ | 2.输入“wmic bios get serialnumber”可显示主机序列号(本例中为惠普主机)。 | ||
+ | 备注:组装机可能无法显示。 | ||
+ | [[File:WMICHD1.png]] | ||
+ | 3.输入“wmic csproduct get vendor,name,identifyingnumber”可显示主机型号。 | ||
+ | [[File:WMICHD2.png]] | ||
+ | 4.输入“wmic memorychip get capacity,manufacturer,devicelocator”可显示内存信息。 | ||
+ | 备注:本例中为DIMM1插槽的8G三星内存。 | ||
+ | [[File:WMICHD3.png]] | ||
+ | 5.输入“wmic cpu list brief”可显示CPU信息。 | ||
+ | 备注:本例中为英特尔I5-6500。 | ||
+ | [[File:WMICHD4.png]] | ||
+ | 6.输入“wmic cpu get name”仅显示CPU名称。 | ||
+ | [[File:WMICHD5.png]] | ||
+ | 7.输入“wmic diskdrive get caption,size,interfacetype”可显示硬盘信息。 | ||
+ | 备注:fsutil volume diskfree c: 可以查看C盘剩余容量。 | ||
+ | 备注:本例中为500G西数和160G希捷硬盘。 | ||
+ | [[File:WMICHD7.png]] | ||
+ | 8.输入“wmic nic list brief”可显示网卡信息。 | ||
+ | 备注:本例中包括VM虚拟网卡。 | ||
+ | [[File:WMICHD7.png]] | ||
+ | 9.输入“wmic desktopmonitor where status='ok' get screenheight,screenwidth”可查看屏幕分辨率。 | ||
+ | 备注:本例中为768×1366。 | ||
+ | [[File:WMICHD9.png]] | ||
+ | 10.输入“wmic BASEBOARD get Manufacturer^,Product^,Version^,SerialNumber /value”可查看主板信息。 | ||
+ | [[File:WMICHD11.png]] | ||
+ | 11.输入“wmic /output:c:\temp\bios.txt bios list full”则将“wmic bios list full”命令运行结果输出到C盘temp命令下名为bios.txt的文件中。 | ||
+ | 备注:文件路径如包含”-/“等字符需用双引号。 | ||
+ | [[File:WMICHD10.png]] |
於 2022年3月24日 (四) 20:20 的最新修訂
使用WMIC(Windows Management Instrumentation Command-line)命令可直接查看硬體參數。
1.以管理员模式运行CMD命令。
2.输入“wmic bios get serialnumber”可显示主机序列号(本例中为惠普主机)。 备注:组装机可能无法显示。
3.输入“wmic csproduct get vendor,name,identifyingnumber”可显示主机型号。
4.输入“wmic memorychip get capacity,manufacturer,devicelocator”可显示内存信息。 备注:本例中为DIMM1插槽的8G三星内存。
5.输入“wmic cpu list brief”可显示CPU信息。 备注:本例中为英特尔I5-6500。
6.输入“wmic cpu get name”仅显示CPU名称。
7.输入“wmic diskdrive get caption,size,interfacetype”可显示硬盘信息。 备注:fsutil volume diskfree c: 可以查看C盘剩余容量。 备注:本例中为500G西数和160G希捷硬盘。
8.输入“wmic nic list brief”可显示网卡信息。 备注:本例中包括VM虚拟网卡。
9.输入“wmic desktopmonitor where status='ok' get screenheight,screenwidth”可查看屏幕分辨率。 备注:本例中为768×1366。
10.输入“wmic BASEBOARD get Manufacturer^,Product^,Version^,SerialNumber /value”可查看主板信息。
11.输入“wmic /output:c:\temp\bios.txt bios list full”则将“wmic bios list full”命令运行结果输出到C盘temp命令下名为bios.txt的文件中。 备注:文件路径如包含”-/“等字符需用双引号。