CMD Commands to Gather Information of a System - GeeksforGeeks (2024)

Command Prompt in Windows offers a range of commands to gather detailed information about your system’s hardware, software, and overall health. These CMD commands provide quick access to system details, making it easier to diagnose issues, check specifications, and retrieve essential information. In this guide, we will explore a variety of CMD commands for system details, including how to use them effectively to retrieve system information. Whether you’re looking to gather hardware information, check system specs, or perform a system health check, these CMD commands will help you get the job done efficiently.

This article uses wmic commands. Wmic is a tool of the command prompt to get system information. The full form of wmic is the Windows Management Interface command. The list of Commands for gathering information is mentioned below.

Serial Number

The command is used to get the computer’s serial number. This is very helpful to get the serial number of our bios. We will get our serial number instead of O.E.M.

wmic bios get serialnumber

CMD Commands to Gather Information of a System - GeeksforGeeks (1)

wmic bios get serialnumber command

Mac Address

The command is used to get Mac Address is given below but there other be other ways also by which we can get our Mac Address.

wmic nic get macaddress :: Method 1
getmac :: Method

CMD Commands to Gather Information of a System - GeeksforGeeks (2)

getmac

CPU

This command helps to gather all information about a CPU i.e. name, device id, number of cores, max clock speed, status. This can also help us in figuring out our CPU specs.

wmic cpu

We can also send attributes to get the particular details of a CPU in a better view. You may use a particular attribute to get particular details of CP.

wmic cpu get caption, name, deviceid, numberofcores, maxclockspeed, status

CMD Commands to Gather Information of a System - GeeksforGeeks (3)

get cpu command

RAM

There are many times when we need to know the RAM size of a machine. The following command helps us to get the total size of the ram in the number of bits. We can convert the size from bits to bytes if we want to know by dividing the size by 8.

Given_Ram_Size (in bits) / 8 = New_Ram_Size (int bytes)

wmic computersystem get totalphysicalmemory

CMD Commands to Gather Information of a System - GeeksforGeeks (4)

totalphysicalmemory command

Partition Details

In many cases, we need to know the size of the disc as well as the partition of our/someone’s disk. Here is the command to get the details of the partition of the disc. Here also, like in CPU, we can get the particular detail of the disc, like getting the name or size or type or getting everything in one shot.

The size given here is also in terms of bits. We can convert it into byte by dividing the given size by 8.

Given_Ram_Size (in bits) / 8 = New_Ram_Size (int bytes)

wmic partition get name,size,type

CMD Commands to Gather Information of a System - GeeksforGeeks (5)

wmic partition get name,size,type

Process

These are the commands which can help us to get the list of all processes running on our computer, and we can also close them by using these commands. These commands are very useful to get to know what tasks are running on someone’s machine. It gives us a list of processes that are running in our background.

wmic process list

CMD Commands to Gather Information of a System - GeeksforGeeks (6)

wmic process list command

We can terminate these tasks by using the command:

wmic process where name="name_of_file" call terminate

Note: Put the name of the ‘.exe file’ in place of “name_of_file”

Example:

Let’s say, we want to terminate the calculator. So, open a calculator in the system and terminate the process by using the following steps:

1. After opening the calculator, execute the following command.

wmic process list

CMD Commands to Gather Information of a System - GeeksforGeeks (7)

calculator.exe

2. Now, execute the following command and it will terminate the ‘Calculator.exe’ process.

wmic process where name="Calculator.exe" call terminate

CMD Commands to Gather Information of a System - GeeksforGeeks (8)

terminate calculator using cmd

Product

This command gives/returns us the list of all products/software installed on a computer that is developed by a well-known developer and is recognized by the windows[Microsoft].

wmic product
::OR
wmic product get name,version

CMD Commands to Gather Information of a System - GeeksforGeeks (9)

wmic product get name, version

Basic Volume Details

This command gives us the details of a particular volume of the disc. This also gives us the serial number of the volume of that disc.

vol volume_letter:

Note: Replace volume_letter with the letter of the volume you wish to use.

CMD Commands to Gather Information of a System - GeeksforGeeks (10)

Window’s Version

This command gives us the window’s version. This helps us figure out that if the updates are installed in our system or what is our window’s version. The command pop up a new window about windows where we can see our Windows version.

winver

CMD Commands to Gather Information of a System - GeeksforGeeks (11)

winver command

Check Disk

This command gives us a list of all large files and files which are harmful. This can also help us to figure out which file is taking more space and we can also delete those files to clean some memory in the disc.

chkdsk

CMD Commands to Gather Information of a System - GeeksforGeeks (12)

chkdsk

System Information

This command gives us all the basic information about our computer such as:

  • Host Name
  • OS Name
  • OS Version
  • OS Manufacturer
  • OS Configuration
  • Os Build Type
  • Registered Owner
  • Product ID
  • Original Install Date
  • Bios Version
  • Processor
  • Input Locale
  • Time Zone
  • & many more
systeminfo

CMD Commands to Gather Information of a System - GeeksforGeeks (13)

system info

CMD Commands to Gather Information of a System - GeeksforGeeks (14)

system info

Disk Details

This command gives us whole details of our hard disk where we can select volume get whole details of that volume.

 diskpart
::'disk part' will get us to an infinite loop.
list disk
::'list disk' will give us the status and the size of the hard disk partition
select disk_name
::Enter our disk name instead of 'disk_name' and our disk will be selected
detail disk
::This will give us option which we can use to manipulate our disk
exit
::This will finally help us to exit the infinite loop

CMD Commands to Gather Information of a System - GeeksforGeeks (15)

diskpart command

CMD Commands to Gather Information of a System - GeeksforGeeks (16)

list disk

CMD Commands to Gather Information of a System - GeeksforGeeks (17)

select disk_name

CMD Commands to Gather Information of a System - GeeksforGeeks (18)

disk detail

CMD Commands to Gather Information of a System - GeeksforGeeks (19)

exiting disk

Mastering these CMD commands for system information allows you to efficiently gather and analyze crucial details about your Windows system. Whether you need hardware specifics, software details, or a system health check, these commands provide valuable insights to help you manage and optimize your system effectively.



M

mohitisgreat6794

Improve

Next Article

How to Find all the Hardware Information in Raspberry Pi OS?

Please Login to comment...

CMD Commands to Gather Information of a System - GeeksforGeeks (2024)
Top Articles
Latest Posts
Article information

Author: Catherine Tremblay

Last Updated:

Views: 6349

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Catherine Tremblay

Birthday: 1999-09-23

Address: Suite 461 73643 Sherril Loaf, Dickinsonland, AZ 47941-2379

Phone: +2678139151039

Job: International Administration Supervisor

Hobby: Dowsing, Snowboarding, Rowing, Beekeeping, Calligraphy, Shooting, Air sports

Introduction: My name is Catherine Tremblay, I am a precious, perfect, tasty, enthusiastic, inexpensive, vast, kind person who loves writing and wants to share my knowledge and understanding with you.