Windows Troubleshooting Cheatsheet

A collection of built-in tools and commands for diagnosing and fixing Windows issues.

Networking

ipconfig /all

Displays full TCP/IP configuration for all adapters, including MAC address and DHCP info.

ping 8.8.8.8

Tests connectivity to a specific IP address or domain to check for packet loss.

tracert google.com

Traces the route packets take to a destination, identifying network hops and delays.

netstat -an

Shows active network connections and listening ports. Useful for finding unusual connections.

ipconfig /flushdns

Clears the local DNS resolver cache. Use this if websites aren't resolving correctly.

ipconfig /renew

Releases and renews the IP address from the DHCP server. Good for connection issues.

System File & Health

sfc /scannow

System File Checker. Scans and repairs corrupted or missing protected Windows system files.

DISM /Online /Cleanup-Image /RestoreHealth

Repairs the underlying Windows component store, which `sfc` relies on. Run this if `sfc` fails.

chkdsk /f /r C:

Checks a disk for file system errors (/f) and locates bad sectors to recover data (/r).

resmon

Opens the Resource Monitor, providing a detailed real-time view of CPU, memory, disk, and network usage.

shutdown /r /o /t 0

Restarts the PC into the Advanced Startup Options menu for Safe Mode, System Restore, etc.

System Information

systeminfo

Displays a detailed configuration summary of the computer's hardware and software.

msinfo32

Opens the System Information GUI, a comprehensive tool for viewing hardware, components, and software.

dxdiag

DirectX Diagnostic Tool. Gathers information about DirectX components and drivers for multimedia troubleshooting.

Process & Service Management

tasklist

Displays a list of currently running processes on the local or a remote machine.

taskkill /F /PID 1234

Forcefully terminates a process by its Process ID (PID). Use `tasklist` to find the PID.

services.msc

Opens the Services management console to start, stop, and configure Windows services.

gpupdate /force

Forces an immediate update and reapplication of all Group Policy settings.

Get-Process | Sort CPU -Desc | Select -First 10

PowerShell: Lists the top 10 processes by CPU usage. (Run in PowerShell, not CMD).

Get-Service | ? { $_.Status -eq "Running" }

PowerShell: Lists all currently running services. (Run in PowerShell, not CMD).

Disk & Storage Management

diskmgmt.msc

Opens the Disk Management GUI to manage partitions, format drives, and assign drive letters.

diskpart

Opens the command-line disk partitioning utility. (Advanced users only).

cleanmgr

Opens the Disk Cleanup utility to free up space by removing temporary files.

dfrgui

Opens the Drive Optimizer to defragment HDDs or optimize (TRIM) SSDs.

Useful Utilities & Applets

eventvwr.msc

Opens the Event Viewer, which shows a log of system and application errors and events.

msconfig

Opens System Configuration to manage boot options, services, and startup programs (pre-Win10).

control

Opens the classic Control Panel.

appwiz.cpl

Opens "Programs and Features" to quickly uninstall applications.

perfmon

Opens the Performance Monitor to analyze system performance and resource usage in detail.

mstsc

Opens the Remote Desktop Connection client.