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.
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.
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:
wmic cpu
wmic cpu get caption, name, deviceid, numberofcores, maxclockspeed, status
wmic bios get serialnumber
wmic computersystem get totalphysicalmemory
wmic partition get name,size,type
wmic process list
wmic process where name="name_of_file" call terminate
wmic product
wmic product get name,version
vol volume_letter:
winver
chkdsk
systeminfo
diskpart
wmic nic get macaddress
getmac
wmic USERACCOUNT get Caption,Name,PasswordRequired,Status
wmic NIC get Description,MACAddress,NetEnabled,Speed
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!