10 Most Useful Command Prompt Commands Every Windows User Should Know (2026)


What are the most useful Command Prompt commands? Learn 10 essential CMD commands for Windows 10 and 11 that every user should know.


If you’ve never opened Command Prompt before, it’s easy to assume it’s a tool reserved for IT professionals and software developers. After all, Windows gives you graphical settings for almost everything these days — why would you need a black screen full of text?

10 Most Useful Command Prompt Commands

Here’s the thing: some of the most powerful troubleshooting tools built into Windows are only a few typed words away through CMD. Whether you’re dealing with a dropped internet connection, a sluggish PC, a program that refuses to close, or a hard drive throwing warning signs, knowing the right Command Prompt commands can save you hours of frustration — and sometimes an expensive trip to the repair shop.

In this guide, you’ll learn the 10 most useful CMD commands that every Windows user should have in their back pocket. You’ll find out what each command does, when to use it, and exactly how to run it on your Windows 10 or Windows 11 PC.


What Is Command Prompt and Why Is It Still Useful?

Command Prompt — also known as CMD or the Windows command line — is a text-based interface built into every version of Windows. Instead of clicking through menus, you type direct instructions to your operating system and get immediate results.

Even in 2026, with Windows packed full of modern graphical interfaces and AI-powered tools, CMD remains one of the most reliable, lightweight, and precise ways to control your system. It launches faster than most apps, uses almost no system resources, and gives you access to diagnostic tools that simply don’t exist anywhere in the standard Windows settings menus.

Once you know a handful of key commands, you’ll find yourself reaching for CMD regularly — especially when something goes wrong.


How to Open Command Prompt in Windows 10 and Windows 11

Before diving into the commands themselves, here’s how to open Command Prompt on your PC.

Method 1 — Keyboard Shortcut (Fastest) Press Windows + R, type cmd, and press Enter. This opens a standard Command Prompt window.

Method 2 — Start Menu Search Click the Start button, type Command Prompt, and click the result. This is the easiest method if you’re not comfortable with keyboard shortcuts.

Method 3 — Run as Administrator (Required for Some Commands) Search for Command Prompt in the Start Menu, then right-click it and choose Run as Administrator. You’ll need this for commands like SFC and CHKDSK. When in doubt, running as administrator is the safer option.


Before You Begin: A Few Quick Tips for CMD Beginners

  • Type commands exactly as shown. CMD is not case-sensitive for most commands, but spaces and slashes matter.
  • Use administrator mode when required. Some commands will simply not work without elevated privileges.
  • You can copy and paste into CMD. Right-click inside the CMD window to paste a command you’ve copied.
  • Press Enter to run a command after you’ve typed it.

1. IPConfig — View and Refresh Your Network Settings

What Does IPConfig Do?

IPConfig (short for Internet Protocol Configuration) is one of the most frequently used CMD commands for anyone troubleshooting a network or internet connection issue. It displays all the key information about your network adapters — including your IP address, subnet mask, and default gateway — directly in the command window.

Think of it as a quick snapshot of how your PC is connected to your network and the internet.

Common IPConfig Commands

Type the following into CMD and press Enter:

ipconfig

This shows a summary of your current network configuration. For more detail, including MAC addresses and DNS servers, use:

ipconfig /all

If your internet connection has dropped or you’re getting an “IP address conflict” error, these two commands are particularly helpful:

ipconfig /release
ipconfig /renew

Running /release followed by /renew forces your PC to let go of its current IP address and request a fresh one from your router — often fixing connection problems in seconds.

Another command worth knowing for fixing website loading issues is:

ipconfig /flushdns

When Should You Use It?

You’ll find IPConfig useful whenever you’re experiencing internet connectivity problems, setting up a home network, or troubleshooting why certain websites won’t load. It’s also the go-to command when your IT department or internet provider asks for your IP address.

Example Scenario: Fixing Website Loading Problems

Imagine a website loads on your phone but not on your PC. Running ipconfig /flushdns clears your DNS cache — essentially wiping your PC’s memory of old website addresses that may have changed. This alone fixes many frustrating “site can’t be reached” errors without restarting your router.

Tip: If a website works on your phone but not your PC, run ipconfig /flushdns first — it takes seconds and fixes more problems than you’d expect.


2. Ping — Test Your Internet and Network Connectivity

What Does the Ping Command Do?

Ping is the simplest and most universally useful network diagnostic command available. It sends a small signal to a server or website and measures how long it takes to get a response back — giving you confirmation of whether a connection exists and how stable it is.

How to Use It

ping google.com

After pressing Enter, you’ll see a series of results showing response times in milliseconds (ms). A successful ping looks like this:

Reply from 142.250.180.46: bytes=32 time=12ms TTL=118

How to Interpret Ping Results

  • Low response times (under 50ms): Your connection is healthy.
  • Higher response times (100ms+): Your connection may be slow or unstable.
  • “Request timed out”: The destination server couldn’t be reached — either the site is down, or your internet connection has a problem.

When Ping Helps Troubleshoot Problems

Ping is the fastest way to tell the difference between a problem with a specific website and a problem with your internet connection itself. If ping google.com fails but ping 8.8.8.8 (Google’s DNS server) succeeds, the issue is likely with DNS resolution rather than your actual connection.

Example Scenario: Checking Whether a Website Is Down

Before spending time troubleshooting your router or calling your internet provider, run a quick ping to the problem website. If you get replies, the site is reachable and the issue may be browser-specific. If you get timeouts, the problem is either with your connection or the site itself.

Tip: Use ping 8.8.8.8 alongside ping google.com — if the IP ping succeeds but the domain name ping fails, you have a DNS issue, not a full internet outage.


3. Tracert — Trace the Route to a Website or Server

What Is Tracert Used For?

Tracert (short for Trace Route) goes a step further than Ping. Instead of just telling you whether a connection succeeds or fails, it maps out every stop — called a “hop” — that your data makes on its way from your PC to the destination server. This is invaluable when you want to know where a connection problem is occurring.

How to Use It

tracert google.com

Understanding Network Hops

Each line in the output represents one hop — a router or server your data passed through. You’ll see three response time measurements for each hop. If a specific hop shows very high times or ” * “ (meaning no response), that’s where your connection is running into trouble.

Example Scenario: Diagnosing a Slow Connection

If websites feel sluggish but your Ping results look fine, run a Tracert. If the first few hops (which represent your local network and router) are fast but later hops are slow, the bottleneck is somewhere between your internet provider and the destination — not your home network. This is useful information to share with your ISP when reporting a problem.

Tip: Share your Tracert results with your ISP support team when reporting slow speeds — it shows them exactly where the delay is happening and speeds up the troubleshooting process significantly.


4. PathPing — Identify Packet Loss and Network Delays

PathPing vs Ping

PathPing is essentially a more detailed version of Ping and Tracert combined. It maps the route to a destination like Tracert does, but then spends time analyzing each hop for packet loss and latency. This makes it particularly useful for diagnosing intermittent connection problems that come and go unpredictably.

How to Use It

pathping google.com

Be patient — PathPing takes a couple of minutes to complete because it spends time gathering data at each hop.

When to Use PathPing Instead of Ping

If your video calls keep dropping, your online game has unpredictable lag spikes, or your connection feels unstable even though your speed test looks fine, PathPing can often identify the specific hop where packet loss is occurring.

Example Scenario: Investigating Intermittent Connectivity

You notice your connection drops briefly every few minutes but always comes back. Ping may not catch this, but PathPing’s sustained analysis of each hop can reveal exactly where packets are being lost — giving you (or your ISP) a clear picture of where the problem lives.

Tip: If your internet seems fine during a speed test but you still experience lag or dropped calls, run PathPing — it catches intermittent packet loss that basic Ping tests often miss entirely.


5. Netstat — View Your Active Network Connections

What Is Netstat?

Netstat (Network Statistics) displays all active network connections on your PC, including the ports being used and the current state of each connection. It’s a powerful tool for understanding what your computer is communicating with at any given moment.

How to Use It

netstat -an

This displays a list of all open ports and active connections along with their IP addresses and connection states.

Checking Open Ports and Connections

The output shows each connection with a Local Address, a Foreign Address, and a State (such as ESTABLISHED, LISTENING, or CLOSE_WAIT). A large number of established connections to unfamiliar addresses can sometimes warrant closer investigation.

Example Scenario: Investigating Suspicious Activity

If your PC seems to be using more bandwidth than expected, Netstat can show you exactly what connections are active. While it won’t identify specific programs on its own, you can cross-reference suspicious IP addresses or pair Netstat with the Tasklist command (covered below) to track down the source.

Understanding Common Connection States

  • LISTENING: Your PC is waiting for incoming connections on this port.
  • ESTABLISHED: An active, two-way connection currently in progress.
  • TIME_WAIT: A connection that’s in the process of closing down.

Tip: Run netstat -an and look for ESTABLISHED connections to unfamiliar foreign IP addresses — if something seems off, cross-reference those IPs using a free lookup tool like WhatIsMyIPAddress.com.


6. SFC /Scannow — Repair Corrupted Windows System Files

What Is System File Checker?

SFC (System File Checker) is one of the most valuable CMD commands for fixing Windows problems. It scans all protected Windows system files, checks their integrity, and automatically replaces any that are missing or corrupted. If your PC is acting strangely — random crashes, error messages, or features that suddenly stop working — SFC is often the first repair tool worth trying.

How to Run It

Open Command Prompt as administrator, then type:

sfc /scannow

When You Should Run SFC

Run this command when you’re experiencing:

  • Unexplained error messages or application crashes
  • Windows features that have stopped working without an obvious reason
  • Blue Screen of Death (BSOD) events that keep repeating
  • Issues following a failed Windows Update

How Long Does the Scan Take?

Expect the scan to take anywhere from 5 to 20 minutes depending on your PC’s speed and the size of your system drive. Don’t close the window while it’s running.

What Happens If Corrupt Files Are Found?

If SFC detects corrupted files, it will attempt to repair them automatically using cached copies stored on your system. At the end of the scan, you’ll see one of three results:

  • “Windows Resource Protection did not find any integrity violations” — your system files are clean.
  • “Windows Resource Protection found corrupt files and successfully repaired them” — the issue has been fixed.
  • “Windows Resource Protection found corrupt files but was unable to fix some of them” — further steps may be needed, often involving the DISM command.

Tip: Always run sfc /scannow before reinstalling Windows or paying for technical support — it automatically repairs many common system problems in under 20 minutes at no cost.


7. CHKDSK — Scan and Repair Hard Drive Errors

What Does CHKDSK Do?

CHKDSK (Check Disk) scans your hard drive or SSD for file system errors, bad sectors, and data corruption. While SFC focuses on Windows system files specifically, CHKDSK targets the physical and logical integrity of your storage drive itself. The two commands complement each other well — if you suspect a disk problem, run CHKDSK; if you suspect a Windows file problem, run SFC.

How to Use It

Open Command Prompt as administrator, then type:

chkdsk c:

Replace c: with the drive letter you want to check. Running this basic version will display a report of any errors found but won’t fix them automatically.

Advanced CHKDSK Options

To scan and fix errors at the same time, use:

chkdsk /f /r c:
  • /f tells CHKDSK to fix any errors it finds.
  • /r scans for bad sectors and attempts to recover readable data from them.

Since the C: drive is almost always in use while Windows is running, CHKDSK will ask you to schedule the scan at the next restart. Type Y and reboot your PC.

Signs Your Hard Drive Needs Checking

  • Files taking unusually long to open or save
  • Folders or files that randomly disappear
  • Your PC frequently freezing or becoming unresponsive
  • Unusual clicking or grinding sounds from a traditional hard drive
  • Repeated error messages about corrupted data

What to Expect During a Scan

CHKDSK can take anywhere from a few minutes to over an hour on larger drives. Let it complete without interruption for the most accurate results.

Tip: If your PC is making clicking or grinding noises, run chkdsk /f /r c: immediately and back up your important files — these sounds can signal a failing hard drive that may stop working without warning.


8. Tasklist — View All Running Processes on Your PC

What Is Tasklist?

Tasklist is the command-line version of Windows Task Manager’s Processes tab. It displays every application, background service, and system process currently running on your PC — along with the Process ID (PID) assigned to each one. This information is particularly useful when something is slowing down your system and you want to identify the culprit.

How to Use It

tasklist

The output lists every running process by name, PID, memory usage (in kilobytes), and session type.

Useful Tasklist Variations

To filter results and look for a specific application:

tasklist | findstr "chrome"

This narrows the output to show only processes matching the name you specify — handy when you’re tracking down a specific program.

To display services associated with each process:

tasklist /svc

Example Scenario: Investigating Slow Performance

Your PC suddenly feels sluggish and you want to find out what’s eating up memory. Running tasklist gives you a complete picture of every active process. If you spot an unfamiliar process using a large amount of memory, you can search for it online to determine whether it’s legitimate — or use Taskkill (next) to terminate it.

Tip: Use tasklist | findstr "program name" to quickly check whether a specific application is currently running — much faster than scanning the full process list manually.


9. Taskkill — Force Close Frozen or Unresponsive Programs

What Does Taskkill Do?

Taskkill is the command-line way to force-close any application or process on your PC — including ones that have frozen completely and won’t respond to normal methods. If you’ve ever had a program lock up so badly that even Task Manager struggles to end it, Taskkill is your next option.

How to Use It

First, use Tasklist to find the Process ID (PID) of the frozen program. Then run:

taskkill /PID 1234 /F

Replace 1234 with the actual PID from your Tasklist output. The /F flag forces termination immediately, without waiting for the program to respond.

You can also close a program by name:

taskkill /IM notepad.exe /F

Using Tasklist and Taskkill Together

These two commands work as a team. Run Tasklist first to identify the process you want to close and note its PID, then use Taskkill with that PID to terminate it. This two-step approach is fast and reliable even when Windows itself is struggling.

Example Scenario: Closing an Unresponsive Application

You’re working in a large spreadsheet application that has frozen completely. Right-clicking the taskbar and choosing “End Task” does nothing. Open Command Prompt, run tasklist | findstr "excel" to get the PID, then run taskkill /PID [number] /F to force it closed — without having to restart your entire PC.

Important Warnings Before Killing Processes

  • Don’t terminate system processes — closing core Windows processes like svchost.exe or winlogon.exe can cause your PC to crash or become unstable.
  • Save your work first when possible — force-closing a program means any unsaved data in that application will be lost.
  • Only terminate processes you recognize — if you’re unsure what a process does, search for it before closing it.

Tip: Never use Taskkill on processes you don’t recognise — terminating the wrong system process can cause Windows to crash. When in doubt, search the process name online before closing it.


10. Systeminfo — View Detailed Information About Your PC

What Information Does Systeminfo Show?

Systeminfo pulls together a comprehensive summary of your PC’s hardware and software configuration in one place. A single command gives you details that would otherwise take multiple trips through Windows Settings and Control Panel to find.

How to Use It

systeminfo

What You’ll See

The output includes:

  • Your Windows version and build number
  • The original Windows installation date
  • Time since last reboot
  • Total and available physical RAM
  • BIOS version
  • Installed Windows hotfixes and updates
  • Network adapter information
  • Processor details

Example Scenario: Preparing for Troubleshooting or Upgrades

Before reaching out to technical support, running Systeminfo gives you everything they’re likely to ask for — Windows version, RAM, and system details — in one screen. It’s also useful when you’re checking whether your PC meets the system requirements for a software upgrade, or when verifying that a recent Windows Update was successfully installed.

Tip: Run systeminfo before contacting technical support — having your Windows version, RAM, and system specs ready saves time and helps support staff diagnose your issue faster.


Bonus CMD Commands Worth Knowing

Once you’re comfortable with the core 10, these additional commands are worth exploring:

NSLookup — Queries DNS servers to look up domain information and diagnose DNS resolution problems. Useful alongside IPConfig /flushdns when websites fail to load.

DriverQuery — Lists all installed device drivers on your PC, including their status. Helpful for identifying outdated or missing drivers that may be causing hardware issues.

GPUpdate — Forces a refresh of Group Policy settings, most commonly used in work or school environments managed by a network administrator.

Powercfg — Generates detailed battery and power usage reports. Running powercfg /batteryreport creates a full battery health report — worth checking if your laptop battery life has declined.

Schtasks — Lets you view, create, and manage scheduled tasks directly from Command Prompt, giving you more control than the graphical Task Scheduler.


Command Prompt vs PowerShell: What’s the Difference?

You may have noticed that Windows also includes PowerShell — a more advanced command-line tool. Here’s a quick breakdown to help you decide which one to use.

When CMD is enough: For the everyday tasks covered in this guide — network diagnostics, system scans, checking processes, and gathering system information — Command Prompt does the job perfectly well without any additional complexity.

When PowerShell is the better choice: PowerShell uses a more powerful scripting language and is better suited for automating complex tasks, managing servers, or working in enterprise IT environments. It can run most CMD commands as well as its own more advanced ones.

Which should you learn first? If you’re a regular Windows user rather than an IT professional, start with CMD. It’s simpler, faster to open, uses fewer system resources, and covers the vast majority of everyday troubleshooting scenarios you’re likely to face.


Frequently Asked Questions

What are the most useful Command Prompt commands? For everyday Windows users, the most practical CMD commands are IPConfig, Ping, SFC /Scannow, CHKDSK, Tasklist, Taskkill, and Systeminfo. These cover the most common scenarios: network issues, system file corruption, disk errors, and unresponsive programs.

Which CMD command fixes internet problems? Start with ipconfig /flushdns for websites that won’t load. For broader connection issues, try ipconfig /release followed by ipconfig /renew to get a fresh IP address. Use ping google.com to confirm whether your internet connection is working at all.

Is Command Prompt still useful in Windows 11? Absolutely. While Windows 11 has added many graphical tools, CMD remains the fastest way to run diagnostics, repair system files, and access utilities that don’t have a settings panel equivalent.

What does IPConfig /FlushDNS do? It clears your PC’s DNS cache — a stored list of website addresses your computer has visited. Outdated or corrupted entries in this cache can cause websites to fail to load even when your internet connection is working fine. Flushing the DNS forces your PC to look up fresh address information.

How do I repair Windows using Command Prompt? Run sfc /scannow (as administrator) to scan and repair corrupted Windows system files. For deeper disk-level issues, follow up with chkdsk /f /r c: and schedule it to run on the next restart.

Can Command Prompt remove malware? CMD is not a replacement for dedicated antivirus software, but Netstat can help you spot unusual network connections, and Tasklist can reveal unfamiliar processes that deserve investigation. Always use reputable antivirus or anti-malware software for actual threat removal.

What’s the difference between Ping and Tracert? Ping tells you whether you can reach a destination and how fast the response is. Tracert shows you the full path your data takes to get there, hop by hop, so you can see exactly where a connection problem is occurring.

How do I force close a program using CMD? Run tasklist to find the Program ID (PID) of the frozen application, then run taskkill /PID [number] /F to force it closed immediately.


Final Thoughts

Command Prompt may look like a relic from a simpler era of computing, but it remains one of the most reliable diagnostic and repair tools built into Windows. The commands covered in this guide — IPConfig, Ping, Tracert, PathPing, Netstat, SFC, CHKDSK, Tasklist, Taskkill, and Systeminfo — give you real, practical control over your PC that graphical interfaces simply can’t match in speed or precision.

You don’t need to memorize every command right away. Bookmark this guide, try a few commands the next time something goes wrong, and you’ll quickly build confidence with the Windows command line. Most people are surprised at how quickly a single CMD command can diagnose a problem that would have taken much longer to track down through menus and settings panels.

Which Command Prompt command do you find yourself using most often? Have a question about one of the commands covered here, or a favourite CMD trick we didn’t mention? Drop it in the comments below — we’d love to hear from you.


Visit Our Post Page: Blog Page


Leave a Comment

Your email address will not be published. Required fields are marked *