🛠️ Top 30 Windows Troubleshooting Commands from a Desktop Support Engineer’s Perspective
When critical issues strike—network outages, disk corruption, services crashing—GUI tools may fail, slow down, or hide key details. Enter the Command Prompt (CMD) and Run: fast, lightweight, script-friendly, and available even in Safe Mode or recovery environments. These are the pro-grade tools that desktop support engineers reach for first—think of them as the diagnostic heartbeat of every Windows troubleshooting session.
The Top 30 Troubleshooting Commands
These commands are laser-focused on diagnosis and recovery—no basic file copy commands here. Each entry includes:
- Command
- Definition
- Syntax (with syntax breakdown)
- Usage examples (Simple → Advanced)
1. sfc – System File Checker
Definition: Repairs protected Windows files. (linkedin.com, lifewire.com)
Syntax:
sfc [/scannow | /verifyonly | /scanfile=path]/scannow: scan & auto-fix;
/verifyonly: no fixes;
/scanfile: target-specific file.
Simple:
sfc /scannowAdvanced:
sfc /scanfile=%windir%\System32\kernel32.dll2. chkdsk – Check Disk
Definition: Scans/repairs disk errors & bad sectors.
Syntax:
chkdsk [drive:] [/f] [/r]/f: fix errors; /r: locate bad sectors.
Simple:
chkdsk C:Advanced:
chkdsk D: /f /r3. diskpart – Disk Partitioning
Definition: Manages partitions interactively.
Syntax:
diskpart
list disk
select disk <n>
clean
create partition primary size=...
format fs=ntfs quickSimple:
run diskpart, then list diskAdvanced:
full partition creation script for automation4. bootrec – Boot Repair
Definition: Repairs bootloader issues (MBR, BCD).
Syntax:
bootrec [/FixMbr | /FixBoot | /RebuildBcd]Simple:
bootrec /FixMbrAdvanced:
bootrec /FixBoot && bootrec /RebuildBcd5. ipconfig – Network Configuration
Definition: Displays/manages TCP/IP settings.
Syntax:
ipconfig [/all | /release | /renew | /flushdns]Simple:
ipconfig /allAdvanced:
ipconfig /release
ipconfig /renew
ipconfig /flushdns6. ping – Connectivity Test
Definition: Tests network reachability.
Syntax:
ping [-t] [-l size] hostSimple:
ping google.comAdvanced:
ping -t 8.8.8.87. tracert – Trace Route
Definition: Reveals hops/route to destination.
Syntax:
tracert [-d] hostSimple:
tracert microsoft.comAdvanced:
tracert -d 10.0.0.18. pathping – Path Statistics
Definition: Route + packet loss diagnostics.
Syntax:
pathping [-q n] hostSimple:
pathping google.comAdvanced:
pathping -q 10 example.com9. netsh – Network Configuration Utility
Definition: Deep network setting and reset tool.
Syntax:
netsh <context> <command>Simple:
netsh interface ip show configAdvanced:
netsh winsock reset
netsh int ip reset10. netstat – Network Statistics
Definition: Shows active connections and listening ports.
Syntax:
netstat [-a] [-n] [-o] [-b]Simple:
netstat -aAdvanced:
netstat -ano | findstr :44311. nslookup – DNS Lookup
Definition: Queries DNS records.
Syntax:
nslookup [domain] [server]Simple:
nslookup example.comAdvanced:
nslookup
set type=MX
example.com12. arp – ARP Table
Definition: Manages Address Resolution Protocol cache.
Syntax:
arp -aor
arp -d <IP>Simple:
arp -aAdvanced:
arp -d *13. route – Routing Table
Definition: Inspect and modify routing entries.
Syntax:
View:
route printAdd:
route add <dest> mask <mask> <gateway> IF <interface>Simple:
route printAdvanced:
route add 192.168.2.0 mask 255.255.255.0 10.0.0.1 IF 314. nbtstat – NetBIOS Diagnostic
Definition: Troubleshoots NetBIOS name resolution.
Syntax:
nbtstat [-a name] [-n] [-c]Simple:
nbtstat -a 10.0.0.5Advanced:
nbtstat -n15. tasklist – List Processes
Definition: Shows running processes (like Task Manager).
Syntax:
tasklist [/fi <filter>] [/fo <format>]Simple:
tasklistAdvanced:
tasklist /fi "imagename eq svchost.exe"16. taskkill – Terminate Processes
Definition: Force-stop processes via name or PID.
Syntax:
taskkill /IM <name> [/F]or
/PID <n> [/T /F]Simple:
taskkill /IM notepad.exeAdvanced:
taskkill /PID 1234 /T /F17. systeminfo – System Overview
Definition: Displays OS/hardware/patch details.
Syntax:
systeminfo [/fo <format>]Simple:
systeminfoAdvanced:
systeminfo /fo CSV > sysinfo.csv18. shutdown – Shutdown/Restart
Definition: Power control for local or remote PCs.
Syntax:
shutdown [/s | /r] [/m \\<host>] [/t <sec>] [/f] [/c "msg"]Simple:
shutdown /s /t 30Advanced:
shutdown /r /m \\PC01 /t 0 /f /c "Patch update"19. bootcfg – Boot Configuration (Legacy)
Definition: Modifies boot.ini in pre‑Vista systems.
Syntax:
bootcfg /rebuildSimple:
bootcfg /rebuildAdvanced:
bootcfg /query20. bcdedit – Boot Configuration Data
Definition: Edits bootloader settings in Vista+
Syntax:
bcdedit [options]Simple:
bcdedit /enumAdvanced:
bcdedit /set {default} safeboot minimal21. gpupdate – Policy Refresh
Definition: Forces Group Policy updates.
Syntax:
gpupdate [/force] [/target:{computer|user}]Simple:
gpupdateAdvanced:
gpupdate /force /target:computer22. gpresult – Policy Results
Definition: Shows applied Group Policy settings.
Syntax:
gpresult [/r | /h <file>]Simple:
gpresult /rAdvanced:
gpresult /h policy_report.html23. wmic – WMI Command
Definition: Retrieves system info and controls WMI.
Syntax:
wmic <alias> <operation>Simple:
wmic cpu get nameAdvanced:
wmic process where name="notepad.exe" call terminate24. powercfg – Power Settings
Definition: Troubleshoots power/battery issues.
Syntax:
powercfg [/energy | /batteryreport]Simple:
powercfg /energyAdvanced:
powercfg /batteryreport /output C:\battery.html25. driverquery – Driver List
Definition: Lists driver modules and statuses.
Syntax:
driverquery [/v] [/fo <format>]Simple:
driverqueryAdvanced:
driverquery /v /fo list26. net use – Network Shares
Definition: Manages mapped network drives/shares.
Syntax:
net use [drive:] \\server\share [/delete]Simple:
net use Z: \\fileserver\shareAdvanced:
net use Z: /delete && net use Z: \\fs01\news27. net user – Local Users
Definition: Manages user accounts.
Syntax:
net user [username [password] /add]Simple:
net userAdvanced:
net user jdoe P@ssw0rd! /add /expires:never28. net session – SMB Sessions
Definition: Displays current SMB sessions.
Syntax:
net sessionSimple:
net sessionAdvanced:
net session \\REMOTEPC /delete29. wevtutil – Event Logs
Definition: Manages Windows Event Logs.
Syntax:
wevtutil qe <log> /f:textSimple:
wevtutil qe System /f:textAdvanced:
wevtutil cl Application && wevtutil qe Application30. fc – File Compare
Definition: Compares file contents.
Syntax:
fc [options] file1 file2Simple:
fc fileA.txt fileB.txtAdvanced:
fc /b image1.iso image2.iso5. References
- NinjaOne – 38 CMD essentials (linkedin.com)
- GeeksforGeeks – Most useful CMD commands (geeksforgeeks.org)
- Lifewire – sfc command
- Reddit sysadmin tips
In Summary: These 30 advanced CMD/Run commands are curated for serious troubleshooting—covering system repair, boot, network, Group Policy, user accounts, event logs, and more. This level of capability puts you in the driver’s seat when GUI tools fail. Bookmark it, customize it, and share it as your go-to technical reference on Google Blogger.


0 Comments