Anyone who’s stared at a black Command Prompt window and wondered what to do with it has probably felt a mix of curiosity and intimidation. But behind that blinking cursor lies a powerful tool with over 280 built‑in commands that can recover Wi‑Fi passwords, repair corrupted system files, and automate tasks without third‑party software.

Command Prompt versions since: Windows NT 3.1 (1993) ·
Commands available in CMD: over 280 ·
Windows 10/11 users who have opened CMD: estimated 65% (Microsoft telemetry) ·
Year of first cmd.exe release: 1993

Quick snapshot

1Confirmed facts
2What’s unclear
  • Whether DISM /RestoreHealth works without an internet connection (needs Windows Update or installation media) (Microsoft Support)
3Timeline signal
  • Command Prompt first appeared in Windows NT 3.1 (1993) and remains the primary CLI in Windows 11 (Microsoft Support)
4What’s next
  • Learn advanced commands like tasklist, chkdsk, and powercfg to manage processes, disks, and power settings (Windows Central)

Four key facts about Command Prompt, one pattern: basic file and network commands are the most used, but administrative tasks require elevated privileges.

Label Value
Total commands available Over 280 built-in commands
Most used command dir (list directory)
Admin requirement for Wi‑Fi password Yes, must run as administrator
SFC scan time 15–30 minutes typical

How do I run a Command Prompt?

Open Command Prompt via Start Menu

  • Click the Start button, type cmd or Command Prompt in the search bar, then press Enter (Microsoft Support).
  • For an elevated session, right‑click the result and select Run as administrator (Microsoft Support).
  • Confirm the User Account Control prompt when it appears (Microsoft Support).

Open Command Prompt using Run dialog

  • Press Windows key + R to open the Run dialog (Microsoft Support).
  • Type cmd and click OK.
  • To run as administrator, press Ctrl+Shift+Enter after typing cmd (Windows Central).

Open Command Prompt as Administrator

  • Right‑click the Start button (or press Windows key + X) and select Command Prompt (Admin) or Windows Terminal (Admin) (Windows Central).
  • In Windows 11, the default terminal is Windows Terminal; you can still run CMD inside it with admin privileges.
Why this matters

Running as administrator is required for Wi‑Fi password retrieval and system repair commands. Without elevation, netsh wlan and sfc /scannow will fail with an access denied error (Microsoft Support).

The implication: the first step to using Command Prompt effectively is knowing how to launch it with the right permissions. Most useful tasks require admin access.

What are the basic commands in cmd?

dir – list files and folders

  • Type dir and press Enter to display the contents of the current directory (Microsoft Support).
  • Use dir /p to pause after each screen, or dir /w for wide format.

cd – change directory

  • Use cd folder_name to move into a subfolder, cd .. to go up one level (Windows Central).
  • Type cd /d D: to switch to another drive.

ipconfig – network configuration

  • Run ipconfig to see your IP address, subnet mask, and default gateway (Microsoft Support).
  • Add /all to display detailed info including DNS servers and MAC addresses.

ping – test network connectivity

  • Type ping google.com to check if a remote host is reachable (Microsoft Support).
  • Look at the reply time and packet loss percentage to diagnose network issues.
Bottom line: Command Prompt is what it is — a no‑frills CLI that gives you direct access to Windows internals. Beginners: start with dir and cd to navigate. Power users: combine ipconfig and ping for quick network troubleshooting.

The pattern: these four commands cover the majority of everyday file and network tasks. Once you master them, you can handle most basic operations without opening a graphical menu.

How to use cmd to find wifi password?

Use netsh wlan show profiles

  • Open Command Prompt as Administrator (see steps above).
  • Type netsh wlan show profiles and press Enter to list all saved Wi‑Fi networks (Microsoft Q&A).
  • Note the exact name (SSID) of the network whose password you want.

Use netsh wlan show profile name=SSID key=clear

The catch

This method reveals only saved Wi‑Fi passwords on the current machine. It cannot recover passwords for networks you haven’t connected to. And it requires admin rights — a standard user account will see a blank Key Content field (Microsoft Tech Community).

The trade‑off: the convenience of recovering a forgotten network password without third‑party software is balanced by the strict requirement of admin privileges. For most home users, this is a minor hoop.

How do I repair my PC using Command Prompt?

Run sfc /scannow to check system files

  • Open Command Prompt as Administrator.
  • Type sfc /scannow (with a space between sfc and /scannow) and press Enter (Microsoft Support).
  • The scan takes 15–30 minutes and replaces corrupted system files automatically.
  • After completion, type exit to close the window (Microsoft Support).

Run DISM to repair Windows image

  • Before SFC, Microsoft recommends running DISM.exe /Online /Cleanup-Image /Restorehealth (Microsoft Support).
  • Wait for the message The operation completed successfully before proceeding to SFC (Microsoft Support).
  • DISM needs an internet connection to download replacement files from Windows Update; if offline, use installation media.

“System File Checker is a tool to repair missing or corrupted system files.”

— Microsoft Support (official documentation)

“To open Command Prompt on Dell systems, search for cmd in the Start menu, then right‑click and select Run as administrator.”

— Windows Central (tech publication)

What to watch

If DISM reports a corruption that it cannot fix, you may need to run DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess using a Windows installation USB (Microsoft Support).

The implication: SFC and DISM together form a powerful repair sequence that can fix many system crashes, blue screens, and missing DLL errors. Running them in the correct order — DISM first, then SFC — is critical.

How to use command prompt step by step?

Open Command Prompt

  1. Step 1: Press Windows key + R, type cmd, and press Enter (Microsoft Support).
  2. For admin mode, use Ctrl+Shift+Enter after typing cmd.

Navigate directories using cd

  1. Step 2: Type cd .. to go up one folder, or cd Documents to enter the Documents folder (Windows Central).
  2. Step 3: Use dir to see the contents of the current folder.

Run commands with arguments

  1. Step 4: Type the command name followed by any parameters. Example: ipconfig /all (Microsoft Support).
  2. Press Enter to execute. Use the Up arrow key to recall previous commands.
Bottom line: Command Prompt is what it is — a no‑frills CLI that gives you direct access to Windows internals. Beginners: start with dir and cd to navigate. Power users: combine ipconfig and ping for quick network troubleshooting.

Why this matters: the step‑by‑step workflow — open, navigate, run — is the same pattern for every command. Once you internalize it, you can apply it to any of the 280+ commands available.

For those new to text-based interfaces, a comprehensive beginner’s guide a comprehensive beginners guide can help you master essential commands like ipconfig and chkdsk with ease.

Frequently asked questions

Can Command Prompt recover deleted files?

No, CMD does not have a built‑in command to recover deleted files. You would need third‑party recovery tools or use the Windows File History feature.

How to copy output from Command Prompt?

Right‑click anywhere in the CMD window and select Mark, then highlight the text and press Enter to copy it to the clipboard. Alternatively, right‑click and choose Select All then press Enter.

How to change Command Prompt colors?

Right‑click the title bar, select Properties, go to the Colors tab, and choose your preferred background and text colors. You can also use the color command (e.g., color 0A for black background with green text).

What does cmd stand for?

CMD stands for Command (or sometimes Command Prompt). The executable file is cmd.exe.

Is Command Prompt the same as PowerShell?

No, they are separate shells. CMD uses the legacy command language, while PowerShell uses cmdlets and a more modern scripting language. Both can run basic commands like dir and ipconfig.

Can I use Command Prompt on a USB drive?

Yes, you can run CMD from a Windows installation USB by booting from the drive and selecting Repair your computer > Troubleshoot > Command Prompt.

For everyday users, the choice is clear: learn the three commands that matter most — netsh wlan for Wi‑Fi passwords, sfc /scannow for system repairs, and ipconfig /all for network diagnostics — or continue relying on graphical tools that may not offer the same level of control. The upside: no third‑party software, no cost, and a deeper understanding of how Windows really works.