Hidden Windows Commands Cheat Sheet

A curated list of useful hidden commands for Windows power users, IT professionals, and enthusiasts.

1. Drive & Volume Management

CommandPurposeNotes / Example
mountvol /rReset stale volume mount pointsRemoves old USB history and orphaned volume GUIDs; useful for eliminating false “Scan and Fix” prompts.
diskpartDisk partition managementUse list disk, select disk, clean to manage partitions.
fsutil dirty query X:Check if volume X: has the dirty bit setRequires admin rights.
chkdskCheck and repair filesystem/f fixes errors, /r locates bad sectors.
robocopyRobust file copy and mirroringPreserves timestamps and retries automatically.
vssadminManage Volume Shadow CopiesUseful for creating or listing snapshots.
defragOptimize disks/C defrags all volumes, /X consolidates free space.

2. Network & Connectivity

CommandPurposeNotes / Example
ipconfig /allView detailed IP configurationUse /release and /renew for DHCP changes.
netstat /anoView active network connectionsShows process IDs of each connection.
arp -aShow ARP tableGood for local network troubleshooting.
nslookupDNS query toolTest name resolution.
tracertTrace route to a hostShows hop-by-hop latency.

3. System & Process Management

CommandPurposeNotes / Example
tasklistList running processes/svc shows associated services.
taskkill /PID <pid> /FTerminate a processRequires admin for some processes.
whoami /privView user privilegesUseful for permission troubleshooting.
systeminfoShow detailed system infoOS version, uptime, memory, etc.
sfc /scannowRepair protected system filesRuns System File Checker.

4. Registry & Configuration

CommandPurposeNotes / Example
reg queryRead registry keysExample: reg query HKLM\SYSTEM\CurrentControlSet\Control\Session Manager
reg addAdd registry keysCan script configuration changes.
reg deleteDelete registry keysAlways back up first!
bcdeditManage boot configurationChange default OS, safe mode options, etc.

5. Hidden “Under-the-Hood” Tools

CommandPurposeNotes / Example
fsutil reparsepoint query <path>Inspect junctions/symlinksAdvanced filesystem analysis.
cipher /w:X:Wipe free space securelyDoes not touch existing files.
takeown /f <file>Take ownership of a file/folderUseful for locked files.
icaclsManage permissionsGrant, remove, save ACLs.
powercfg /energyGenerate power efficiency reportChecks system for energy waste.
wevtutilManage Event LogsExport, clear, or query logs.

6. USB & Removable Media

CommandPurposeNotes / Example
wmic logicaldisk get name, volumename, descriptionList drives with infoWorks well in batch scripts for USB detection.
mountvolManage volume mount pointsUse /r to remove stale mounts; /p to dismount.
diskpartList disks and volumesCan clean partitions or assign letters.
devconDevice ConsoleEnable/disable devices from command line.

7. Miscellaneous

CommandPurposeNotes / Example
schtasksSchedule tasks from CLIAutomate scripts and maintenance.
gpupdate /forceForce Group Policy refreshUseful after policy changes.
wmicQuery system info via WMIHardware, BIOS, network, processes.
powershell -Command "<script>"Run PowerShell commands from CMDIntegrates scripts into batch automation.

💡 Tip: Most of these commands require Administrator privileges to be fully effective.