Advanced PCREPAIR GUIDE
Clear Windows repair instructions, diagnostic paths, and trusted resources in one place.
Start a Free Scan
Advanced PC Repairs › Windows Repair Guides › Windows Repairs

Useful CMD Commands for Windows Repair and Diagnosis

Learn safe Command Prompt commands for checking Windows files, networking, storage, and system information, with guidance on when to use each.

Windows 10 & 11Practical repair guideUpdated September 2026
HOW TO REPAIR WINDOWS WITH COMMANDS

Choose the Windows repair method that works for you

Run the appropriate built-in repair commands yourself, or use Advanced PC Repairs for a guided scan of supported Windows conditions.

Manual repair

Use Windows repair commands

  1. Back up important dataProtect irreplaceable files before system-level repairs.
  2. Open an elevated terminalUse administrator access only for trusted built-in commands.
  3. Run the targeted commandUse DISM, SFC, or disk checks only for the diagnosed condition.
  4. Review and retestRead the result, restart when required, and test the symptom.
View the complete command guide

Automatic-assisted option

Scan with Advanced PC Repairs

Run a guided scan for supported Windows conditions without choosing command-line repairs yourself.

  • Guided scan with a clear results summary
  • Helps identify supported repair opportunities
  • You review the results before choosing what to do
Start a Free PC Scan Requires Windows to start and software to be installed. Scanning is free. Optional paid repairs or subscription plans, including pricing and renewal terms, are shown before purchase.

Command Prompt and Windows Terminal can collect useful evidence and run supported repairs. The safest workflow is to understand each command, record its result, and avoid scripts copied from unknown sources—especially commands that delete files, alter partitions, or weaken security.

Safe starting point: Save open work, record the exact symptom, and back up irreplaceable files before resets, partition changes, firmware updates, or hardware repairs.

Check system files

Run sfc /scannow in an administrator terminal to verify protected Windows files. If SFC cannot repair them, run DISM /Online /Cleanup-Image /RestoreHealth, then run SFC again.

Review network configuration

Use ipconfig /all to view adapters, addresses, gateways, and DNS servers. Use ipconfig /flushdns only when testing a suspected local DNS-cache issue; it does not repair an internet outage.

Test name resolution and reachability

Use nslookup example.com to query DNS and ping for a basic reachability test. Some servers block ping, so a timeout alone does not prove the site is offline.

Inspect running processes and drivers

Use tasklist to list processes and driverquery for installed driver information. Do not terminate an unfamiliar process until you identify its publisher and purpose.

Check a volume safely

Run chkdsk C: /scan for an online check. Repair switches may schedule work at restart and can stress a failing drive, so back up important data before repair operations.

Save output for comparison

Append > report.txt to save ordinary output to a file you control. Do not share reports publicly without reviewing them for usernames, network addresses, and device details.

Avoid misleading repair shortcuts: Do not use random DLL sites, unsolicited support numbers, unknown command scripts, or generic driver portals. Prefer Windows and the hardware or software publisher.

Frequently asked questions

Should I run CMD as administrator?

Only when the command requires elevation. Use a standard terminal for read-only checks when possible.

Are online repair scripts safe?

Not automatically. Read every command and avoid scripts that disable security, delete broad folders, or change boot records without a clear need.

What order should I run DISM and SFC?

When the component store may be damaged, run DISM first and SFC afterward.

This article provides general educational information. Menus and options vary by Windows version, computer manufacturer, and configuration.

Advanced PC Repairs

Start with a Free PC Scan

If Windows can start normally or in Safe Mode, download Advanced PC Repairs to scan for supported Windows conditions that may contribute to errors, instability, or reduced performance.

Software installation is required. Scanning is free. Optional paid repairs or subscription plans are presented with pricing and renewal terms before purchase.
Start a Free Scan