Skip to main content
    Step 1 of 5
    Windows Guides
    Beginner

    Command Prompt Basics: Simple Commands That Can Solve Everyday PC Problems

    The Command Prompt is a text-based Windows tool that can fix internet problems, check your PC's health, and perform tasks no regular app can match.

    4 min read 5 stepsApril 20, 2026Verified April 2026
    1

    Open Command Prompt

    ~17s
    Click the Start button and type "cmd." Right-click "Command Prompt" from the results and choose "Run as administrator" — this gives you full access to run all commands in this guide. A window with a dark background and white or yellow text appears. The cursor blinks, waiting for you to type.
    2

    Check your internet connection with ping

    ~34s
    Type this command and press Enter: ping google.com — Your computer will send four test signals to Google's servers and report how long each one took to get a response. If you see "Reply from" messages, your internet connection is working. If you see "Request timed out," your PC cannot reach the internet. This is a quick way to confirm whether a connection problem is on your end or Google's.

    Quick Tip

    Quick Tip: If ping google.com fails but ping 8.8.8.8 (Google's server address) works, the problem may be with how your PC resolves website names — a DNS issue. Try the ipconfig /flushdns command next.

    3

    View your network details with ipconfig

    ~18s
    Type ipconfig and press Enter. This displays information about your network connections, including your IP address (your computer's unique address on the network), your subnet mask, and your default gateway (usually your router's address). This information is useful when calling your internet provider for support — they may ask for your IP address.
    4

    Reset your internet connection

    ~32s
    If your internet stopped working after a Windows update or a program change, these two commands often fix it. Type each one and press Enter, waiting for each to finish before typing the next: netsh int ip reset — then: ipconfig /flushdns — then restart your computer. These commands reset your network settings and clear the record of website addresses your computer has stored, which can resolve many common connectivity problems.

    Warning

    These commands reset your network configuration. If you have manually configured static IP settings for your computer, those settings will be cleared and you will need to re-enter them afterward.

    5

    Check the system file health with sfc /scannow

    ~29s
    If Windows is behaving strangely — programs crashing, errors appearing unexpectedly — the System File Checker can repair corrupted Windows files. Open Command Prompt as administrator and type: sfc /scannow — and press Enter. This scans all protected Windows files and replaces any corrupted ones from a cached backup. It takes 10–20 minutes and reports what it found when complete.

    Quick Tip

    Quick Tip: Microsoft's official support article at support.microsoft.com explains how to interpret sfc /scannow results and what to do if it cannot repair all files.

    You Did It!

    You've completed: Command Prompt Basics: Simple Commands That Can Solve Everyday PC Problems

    Need more help? Get Expert Help from a TekSure Tech

    The Command Prompt — often shortened to CMD — is a text-based tool that has been part of Windows since the early days of personal computers. It lets you control your computer by typing commands instead of clicking icons and menus. While it looks old-fashioned, it remains one of the most useful troubleshooting tools built into Windows.

    You do not need to know dozens of commands to find the Command Prompt useful. A handful of simple commands solve the most common everyday PC problems, especially internet and network issues.

    The most frequently useful commands for everyday users are: ping (checks whether your computer can reach a website or server), ipconfig (shows your computer's network connection details), tracert (shows the path your internet connection takes to reach a website), and the netsh and ipconfig reset commands (which can fix internet connectivity problems by resetting your network settings).

    These commands are safe to run and do not make permanent changes to your system. They are diagnostic tools — they gather information or perform small, reversible network resets that have been standard troubleshooting steps for decades.

    The Command Prompt and PowerShell are both text-based tools in Windows. For the commands in this guide, either one works. Command Prompt is slightly simpler in appearance, while PowerShell is the more modern tool and handles a wider range of tasks.

    As with PowerShell, always be cautious about where you get commands to run. Only use commands from trusted sources.

    Was this guide helpful?

    Your feedback helps us make TekSure better for everyone.

    Want to rate with stars?

    Still have questions?

    Ask TekBrain a follow-up question about this guide. It’s free, no sign-up needed, and the answer will be in plain English.

    command prompt
    cmd
    windows commands
    PC troubleshooting
    network repair

    Official Resources

    Sources used to create and verify this guide. View all sources →

    Still stuck? No problem.

    Sometimes a guide isn’t enough. Our technicians can walk you through it step by step, in plain English, on your schedule.

    Command Prompt Basics: Simple Commands That Can Solve Everyday PC Problems — Step-by-Step Guide | TekSure