wmic baseboard get manufacturer,product
Manufacturer Product
LENOVO GA-6UASV2
3、获取系统信息
wmic computersystem get caption,dnshostname,model,systemtype
Caption DNSHostName Model SystemType
FILESERVER4 fileserver4 Lenovo ThinkServer TS530 x64-based PC
4、获取硬盘信息
wmic diskdrive get caption, size,status
Caption Size Status
WD5003ABYX-88 LEN ATA Device 500105249280 OK
WD5003ABYX-88 LEN ATA Device 500105249280 OK
HPT DISK 0_0 SCSI Disk Device 42007056053760 OK
iCloud OmniCOS SCSI Disk Device 10995110138880 OK
wmic share get Caption,name,path,status |find /V "$"
Caption Name Path Status
Backup Backup F:\Backup OK
IPCMPT IPCMPT F:\IPCMPT OK
IPVFX IPVFX F:\IPVFX OK
Monitor Monitor G:\Monitor OK
Project Project F:\Project OK
render render F:\render OK
SoftRepo SoftRepo Z:\SoftRepo OK
tmp tmp F:\tmp OK
USB_Backup USB_Backup F:\USB_Backup OK
7、获取网络共享信息
wmic netuse get localname,name,remotename,remotepath,status,username
LocalName Name RemoteName RemotePath Status UserName
P: \\172.21.1.5\project (P:) \\172.21.1.5\project \\172.21.1.5\project OK IP\Administrator
8、获取CPU信息
wmic cpu get Caption,loadpercentage
Caption LoadPercentage
Intel64 Family 6 Model 58 Stepping 9 1
9、获取内存硬件信息
wmic memorychip get caption,banklabel,capacity,manufacturer,speed
BankLabel Capacity Caption Manufacturer Speed
BANK 0 4294967296 Physical Memory Hynix/Hyundai 1333
BANK 1 4294967296 Physical Memory Hynix/Hyundai 1333
BANK 3 4294967296 Physical Memory Hynix/Hyundai 1333
10、获取内存使用信息
wmic os get freephysicalmemory,totalvisiblememorysize
FreePhysicalMemory TotalVisibleMemorySize
8452988 12550120
11、获取域控信息
wmic ntdomain get caption,dnsforestname,domaincontrolleraddress,domaincontrollername,status
Caption DnsForestName DomainControllerAddress DomainControllerName Status
IP ip.cn \\172.21.1.8 \\IPAD OK
12、获取进程信息
wmic process get caption,commandline
mmc.exe "C:\Windows\system32\mmc.exe""C:\Windows\system32\taskschd.msc" /s
mmc.exe "C:\Windows\system32\mmc.exe""C:\Windows\system32\ServerManager.msc"
TrustedInstaller.exe C:\Windows\servicing\TrustedInstaller.exe
.......
通过wmic监控Windows系统信息1、wmic 格式化输出2、获取服务器信息3、获取系统信息4、获取硬盘信息5、获取磁盘剩余空间6、获取文件共享7、获取网络共享信息8、获取CPU信息9、获取内存硬件信息10、获取内存使用信息11、获取域控信息12、获取进程信息1、wmic 格式化输出wmic ALIAS get property,property /format:CSV2、获取服务器信息wmic baseboard get manufacturer,productManufacturer