Windows's powerful wmic command line tool windows is the most criticized for network management, that is, the command line is not as powerful as unix and linux. However, this situation is constantly changing, and windows command lines are becoming more and more powerful. Among them, Microsoft spent a lot of energy to build wmi is an example. Obtain the process ID and process name www.2cto.com code: wmic process get processid. name: wmic/node: 109.254.2.102/user: "rdgad \ administrator"/password: "dream come true" process call create commandline = "cmd.exe/k echo xxxxx | clip.exe" get the cpu name, number of digits, serial number code: wmic cpu get name, addresswidth, processorid: wmic memlogical get totalphysicalmemory code: wmic csproduct get IdentifyingNumber add to domain code: wmic computersystem Where name = "% computername %" call joindomainorworkgroup name = "www.mxcz.net" username = "rdgad \ adddomain" password = "mxcz" fjoinoptions = 1 accountou = null get the total disk capacity www.2cto.com code: wmic diskdrive get deviceid, size start a SERVICE code: wmic service where caption = 'telnet 'call STARTSERVICE kill a PROCESS Code: wmic process where name1_'calc.exe 'delete get cpu usage percentage code: wmic path Win32_PerfFormattedData_PerfProc_Process get Name, Pe RcentProcessorTime wmic cpu get LoadPercentage ................................... ................. for more information, enter wmic/? In the command line /? Query.