Windows wmic command line tool

Source: Internet
Author: User
Tags to domain

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.