Skip to content
π οΈ Core Windows Troubleshooting Commands
π System File & OS Repair
sfc /scannow
Scans and repairs corrupted system files.
DISM /Online /Cleanup-Image /RestoreHealth
Fixes deeper Windows image issues (use if SFC fails).
chkdsk C: /f /r
Checks disk for errors and bad sectors.
π Network Troubleshooting
ipconfig /all
Check IP, DNS, gateway details.
ipconfig /release + ipconfig /renew
Refresh IP address.
ipconfig /flushdns
Fix DNS-related issues (websites not loading).
ping google.com
Test internet connectivity.
tracert google.com
Identify where connection is failing.
netsh winsock reset
Fix network stack corruption.
netsh int ip reset
Reset TCP/IP configuration.
π Network Ports & Connections
netstat -ano
Shows active connections and process IDs.
tasklist | findstr <PID>
Identify which program is using a port.
βοΈ Process & Performance
tasklist
Shows running processes.
taskkill /PID <pid> /F
Force-stop a process.
perfmon
Opens Performance Monitor.
resmon
Opens Resource Monitor (great for CPU, RAM, disk usage).
π§ Memory & Hardware
mdsched.exe
Windows Memory Diagnostic tool.
wmic diskdrive get status
Quick disk health check.
π§Ύ Event Logs & System Info
eventvwr
Opens Event Viewer (critical for diagnosing crashes).
systeminfo
Full system configuration details.
msinfo32
Detailed system information GUI.
π User & Permissions Issues
whoami
Shows current user.
net user
Manage user accounts.
β‘ Quick Troubleshooting Workflows
π« No Internet
ipconfig /all β check IP
ping 8.8.8.8 β test connectivity
ping google.com β test DNS
ipconfig /flushdns
netsh winsock reset
- Restart PC
π Slow System
tasklist or resmon β find heavy processes
sfc /scannow
chkdsk C: /f
- Check startup apps (
msconfig)
π₯ Crashes / Errors
eventvwr β check logs
sfc /scannow
DISM /RestoreHealth
πΎ Disk Problems
chkdsk C: /f /r
wmic diskdrive get status
π§° Pro Tips
- Always run Command Prompt as Administrator for repair commands.
- Combine tools:
netstat -ano + taskkill = kill suspicious connections
- Restart after major fixes like
netsh reset or DISM.