Home > Common Problem > 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
Release: 2023-05-05 08:55:06
forward
2351 people have browsed it

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
Copy after login
  • Send properties to better see CPU-specific details.
wmic cpu get caption, name, deviceid, numberofcores, maxclockspeed, status
Copy after login
  • Get the serial number of our BIOS.
wmic bios get serialnumber
Copy after login
  • Collect information about available memory (RAM).
wmic computersystem get totalphysicalmemory
Copy after login
  • Get information about all available partitions on the system.
wmic partition get name,size,type
Copy after login
  • Get a list of all processes running on our computer.
wmic process list
Copy after login
  • You can terminate these tasks using the following command.
wmic process where name="name_of_file" call terminate
Copy after login
  • This command provides a list of all products/software installed on the computer.
wmic product
Copy after login
wmic product get name,version
Copy after login
  • Command that provides detailed information about a specific volume of a disc and the serial number of that disc volume.
vol volume_letter:
Copy after login
如何在 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
Copy after login
  • Get a list of all large and harmful files.
chkdsk
Copy after login
  • Use this command to get detailed system information.
systeminfo
Copy after login
如何在 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
Copy after login
  • Get Mac address.
wmic nic get macaddress 
Copy after login
getmac
Copy after login
  • Get information about the user account.
wmic USERACCOUNT get Caption,Name,PasswordRequired,Status
Copy after login
  • Get information about NIC.
wmic NIC get Description,MACAddress,NetEnabled,Speed
Copy after login
  • Get Memory Device DIMM Number
wmic MEMORYCHIP get Capacity,DeviceLocator,PartNumber,Tag
Copy after login

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!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template