Hidden Windows Commands Cheat Sheet

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

List of Images

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.
netplwizList usersDel those not wanted.

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!
wmic memorychip get blanklabel, capacity, speedDelete registry keysAlways back up first!
findstr /c:"error" %windir%\logs\cbs\cbs.logFind errors in CBS log files.CBS log files are huge by default.
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 /batteryreportGenerates a detailed battery reportBattery life report saved to file path C:\bat\battery-report.html.
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.
gpresult /rSee what organization owns the computerGroup Policies Result.
bcdedit /enumShe how current config is setBIOS=C:\boot\*.bcd UFI=??\ufi\*.bcd on UFI partition.
services.mscManage background servicesOpen Services window.
taskschd.mscSchedule automated tasksOpen Task window.
diskmgmt.mscHandle disk partitionsOpen Virtual Disk Service window.
devmgmt.mscAll-in-one Computer ManageOpen Device Manager window.
compmgmt.mscWMI ControlOpen Computer Management window.
wmimgmt.mscConfigure startup and servicesConsole Root\WMI Control.
msconfigMonitor system performanceChange Boot Options.
perfmon.mscLocal security policiesOpen Performance Monitor window.
perfmon /relShows Reliability monitorRuns at cmd prompt.
netsh advfirewall show allprofileShow Firewall SettingsDomain, Private and Public Profile.
powershell wmiobject win32_winsatShow SAT 32 ScoreWin SAT Rating.
dism.exe /online /cleanup-image /startcomponentcleanupDeployment Image Servicing and Management (DISM) toolReduces WinSxS folder size.
netcfgReset all network adaptersRequires a re-boot.
Sysdm.cplLands on System Properties PageChoose Advanced Tab.
cipher /w:cWipe free space only.Writes 0x00.
fsutil volume diskfree C:Confirms same amount of free space after wipeFree bytes should equal free bytes as before the wipe.
vssadmin list shadowsShows shadow copiesSome could be huge.
vssadmin delete shadows /for=c: /oldestDeletes shadow copies on C:Deletes only the one oldest.
systeminfo | find "Boot Time"Shows last time system was bootedShows last time system was booted.
dfrguiShows list of all DrivesShows if defrag is needed?
powershell -Command "<script>"Run PowerShell commands from CMDIntegrates scripts into batch automation.

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