Home  >  Article  >  How to use wmic on Windows to get information about your system

How to use wmic on Windows to get information about your system

PHPz
PHPzforward
2023-05-05 08:55:062316browse

Although many people think that collecting system information can only be done on Linux. However, this can also be done using the command prompt on Windows operating systems.

Some commands are required to achieve your purpose, and to execute all these commands, you need to run the command prompt as administrator to access the system information.

We'll be using the wmic command in case you were wondering, so stay tuned to see what exactly you're trying to do.

Windows Management Instrumentation Command Line (WMIC) is a command line and scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed through WMI.

How to use wmic to obtain system information?

Before we list the commands you need to use in order to access this information, you must first open a command prompt with administrator privileges.

Only then will your system display the requested information, so keep this in mind when trying this.

  1. Press the Windows key, search for Command Prompt, and select Run as administrator. 如何在 Windows 上使用 wmic 获取有关系统的信息
  2. Type the desired command and press Enter. 如何在 Windows 上使用 wmic 获取有关系统的信息

After opening the application with administrator rights, it’s time to use one of the following commands to get the information you need, depending on the purpose:

  • Collect information about All information about the CPU, such as name, device ID, number of cores, maximum clock speed, and status.
wmic cpu
  • Send properties to better see CPU-specific details.
wmic cpu get caption, name, deviceid, numberofcores, maxclockspeed, status
  • Get the serial number of our BIOS.
wmic bios get serialnumber
  • Collect information about available memory (RAM).
wmic computersystem get totalphysicalmemory
  • Get information about all available partitions on the system.
wmic partition get name,size,type
  • Get a list of all processes running on our computer.
wmic process list
  • You can terminate these tasks using the following command.
wmic process where name="name_of_file" call terminate
  • This command provides a list of all products/software installed on the computer.
wmic product
wmic product get name,version
  • Command that provides detailed information about a specific volume of a disc and the serial number of that disc volume.
vol volume_letter:
如何在 Windows 上使用 wmic 获取有关系统的信息
Notes You must replace volume_letter with the letter of the volume you wish to use.
  • Get the exact version of your Windows operating system.
winver
  • Get a list of all large and harmful files.
chkdsk
  • Use this command to get detailed system information.
systeminfo
如何在 Windows 上使用 wmic 获取有关系统的信息
Notes This will bring back information about hostname, OS name, OS version, OS manufacturer, OS configuration, OS build type, registered owner, product ID , original installation date, BIOS version, processor, input locale, time zone and other information.
  • Get detailed information about the hard drive.
diskpart
  • Get Mac address.
wmic nic get macaddress 
getmac
  • Get information about the user account.
wmic USERACCOUNT get Caption,Name,PasswordRequired,Status
  • Get information about NIC.
wmic NIC get Description,MACAddress,NetEnabled,Speed
  • Get Memory Device DIMM Number
wmic MEMORYCHIP get Capacity,DeviceLocator,PartNumber,Tag

These are the commands you can use in the command prompt to access your system information and get the necessary details.

Please remember to run the software with administrator rights, otherwise you will not be able to access certain information.

The above is the detailed content of How to use wmic on Windows to get information about your system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete