Linux 有相當多的指令可以用來觀察系統狀態,請參考 https://benjr.tw/52888 , 而 Windows 可以透過 wmic ( WMI Command-line ) 這一支工具來做.
測試環境為 Windows 2012 x86_64 虛擬機.
指令有哪些參數可以使用 /? 得知.
C:\Users\Ben>wmic /?
下面幾種參數可以讀取 Windows 系統的資訊.
- OS – Installed Operating System/s management
OS 的哪一些資訊可以取得,一樣透過 /? 來得知 (下面的 BIOS , CPU , MEMPHYSICAL , NIC , DISKDRIVE 參數也是).C:\Users\Ben>wmic OS get /?
C:\Users\Ben>wmic OS get OSArchitecture,Version OSArchitecture Version 64-bit 6.3.9600
- BIOS – Basic input/output services (BIOS) management.
C:\Users\Ben>wmic BIOS get Manufacturer,SMBIOSBIOSVersion Manufacturer SMBIOSBIOSVersion Phoenix Technologies LTD 6.00
- CPU – CPU management
C:\Users\Ben>wmic CPU get Name,NumberOfCores Name NumberOfCores Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz 1
- MEMPHYSICAL – Computer system’s physical memory management
C:\Users\Ben>wmic MEMPHYSICAL get MaxCapacity MaxCapacity 25690112
- NIC – Network Interface Controller (NIC) management
C:\Users\Ben>wmic NIC get MACAddress,Speed MACAddress Speed 00:0C:29:85:2D:5A 1000000000 100000
- DISKDRIVE – Physical disk drive management
C:\Users\Ben>wmic DISKDRIVE get InterfaceType,Size InterfaceType Size SCSI 64420392960
沒有解決問題,試試搜尋本站其他內容