2013年9月1日 星期日

using wmic to perform wql

wmic /node:computerName path Win32_ComputerSystemProduct get name,IdentifyingNumber/format:list replace computer name with @c:\xxx.txt, it will perform batch query.


 wmic path win32_networkAdapter where "MACAddress like '00:1F:29:89%' and DeviceID is not NULL" get * /format:list

wmic nicconfig where index= DeviceID call enablestatic("192.168.16.4"), ("255.255.255.0")

wmic path Win32_NetworkAdapterConfiguration  where index=7 call enablestatic("192.168.16.4"), ("255.255.255.0")

沒有留言: