Top 100 Windows Commands Cheat Sheet


๐Ÿ—‚๏ธ 1โ€“20: File and Folder Management

  • ๐Ÿ“‚ dir โ€“ List files in current directory
  • ๐Ÿ“‚ dir /s โ€“ List all files recursively
  • ๐Ÿ“ cd โ€“ Show/change directory
  • ๐Ÿ“ cd .. โ€“ Go up one level
  • ๐Ÿ“ cd \ โ€“ Go to root of drive
  • ๐Ÿ“„ type file.txt โ€“ Display file contents
  • ๐Ÿ“ mkdir foldername โ€“ Create a new folder
  • ๐Ÿ—‘๏ธ rmdir foldername โ€“ Delete empty folder
  • ๐Ÿ—‘๏ธ del file.txt โ€“ Delete a file
  • ๐Ÿ—‘๏ธ del /f /q *.log โ€“ Force delete all .log files silently
  • ๐Ÿ“ xcopy /s source dest โ€“ Copy folders with subfolders
  • ๐Ÿ“ robocopy source dest /e โ€“ Robust file copy with logging
  • ๐Ÿ” attrib โ€“ View/change file attributes
  • ๐Ÿ” cipher /e โ€“ Encrypt a file
  • ๐Ÿ” cipher /d โ€“ Decrypt a file
  • ๐Ÿ“ฆ compact โ€“ Compress file/folder
  • ๐Ÿ•ต๏ธ fc file1.txt file2.txt โ€“ Compare two files
  • ๐Ÿ“„ copy file1 + file2 newfile โ€“ Combine files
  • ๐Ÿ“ฅ move file.txt d:\target\ โ€“ Move file
  • ๐Ÿ“ค tree โ€“ Display folder structure

๐Ÿงฐ 21โ€“40: System Info & Configuration

  • ๐Ÿ’ป systeminfo โ€“ Detailed system info
  • ๐Ÿ”‹ powercfg /batteryreport โ€“ Battery health (laptops)
  • ๐Ÿ“Š tasklist โ€“ List running processes
  • ๐Ÿ” tasklist /v โ€“ Verbose process view
  • ๐Ÿ›‘ taskkill /IM notepad.exe โ€“ Kill a process by name
  • ๐Ÿ›‘ taskkill /PID 1234 โ€“ Kill by PID
  • ๐Ÿง  msinfo32 โ€“ Opens system information GUI
  • ๐Ÿ“ hostname โ€“ Get computer name
  • ๐Ÿงฐ set โ€“ View environment variables
  • ๐Ÿงช echo %USERNAME% โ€“ Show current user
  • ๐Ÿ“„ ver โ€“ Windows version
  • โš™๏ธ driverquery โ€“ List installed drivers
  • ๐Ÿ“… date / time โ€“ Set or show current date/time
  • ๐Ÿ“š assoc โ€“ File association info
  • ๐Ÿ“˜ help โ€“ List all commands
  • ๐Ÿ“– command /? โ€“ Show help for command
  • ๐Ÿ“ฆ start โ€“ Launch program
  • ๐Ÿ“ mode โ€“ Configure terminal display
  • ๐Ÿ“ฅ chkdsk โ€“ Check disk health
  • ๐Ÿ’ฟ sfc /scannow โ€“ Scan and fix system files

๐ŸŒ 41โ€“60: Network Commands

  • ๐ŸŒ ipconfig โ€“ Show IP details
  • ๐ŸŒ ipconfig /all โ€“ Full network config
  • ๐Ÿšฟ ipconfig /flushdns โ€“ Clear DNS cache
  • ๐Ÿ”„ ipconfig /release โ€“ Release IP
  • ๐Ÿ“ฅ ipconfig /renew โ€“ Get new IP
  • ๐Ÿ“ก ping google.com โ€“ Check internet connectivity
  • ๐ŸŒ tracert 8.8.8.8 โ€“ Trace route to IP
  • ๐Ÿ“ก nslookup domain.com โ€“ Resolve DNS
  • ๐Ÿ“ฆ netstat -an โ€“ Show open ports
  • ๐Ÿง  netsh interface ipv4 show config โ€“ View adapter settings
  • ๐ŸŒ netsh wlan show profile โ€“ Show saved Wi-Fi profiles
  • ๐Ÿ” netsh advfirewall set allprofiles state off โ€“ Disable firewall
  • ๐Ÿ”’ netsh advfirewall set allprofiles state on โ€“ Enable firewall
  • ๐Ÿ“ค ftp โ€“ Connect to FTP server
  • ๐Ÿ“ฅ telnet host port โ€“ Test port connectivity
  • ๐Ÿ“ก arp -a โ€“ ARP table info
  • ๐Ÿ”— route print โ€“ Show routing table
  • ๐Ÿ“ฆ nbtstat -n โ€“ NetBIOS info
  • ๐Ÿ“ถ net view โ€“ List shared devices
  • ๐Ÿ–ง net use โ€“ Connect to network drive

๐Ÿ” 61โ€“80: User & Security Commands

  • ๐Ÿ‘ค whoami โ€“ Current user info
  • ๐Ÿ” net user โ€“ List user accounts
  • ๐Ÿ” net user USERNAME * โ€“ Reset password
  • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ net localgroup โ€“ List groups
  • โž• net user john /add โ€“ Add user
  • โž• net localgroup administrators john /add โ€“ Add user to Admin group
  • โŒ net user john /delete โ€“ Delete user
  • ๐Ÿ” runas /user:admin cmd โ€“ Run command as different user
  • ๐Ÿง‘โ€๐Ÿ’ป control userpasswords2 โ€“ Open user account GUI
  • ๐Ÿ”’ lock โ€“ Lock workstation
  • ๐Ÿ‘ฎ gpresult /r โ€“ View applied policies
  • ๐Ÿงช secpol.msc โ€“ Security policy GUI
  • ๐Ÿงฐ lusrmgr.msc โ€“ Local user/group manager
  • ๐Ÿ”‘ rundll32 netplwiz โ€“ Password settings
  • ๐Ÿ” auditpol /get /category:* โ€“ Audit policy details
  • ๐Ÿงพ cipher /w:C:\ โ€“ Wipe deleted data
  • ๐Ÿ‘๏ธ quser โ€“ Show logged-in users
  • ๐Ÿง‘โ€๐Ÿ’ป qwinsta โ€“ View sessions (RDS)
  • ๐Ÿ›‘ logoff 1 โ€“ Log off session ID 1
  • ๐Ÿ“‹ runas /savecred /user:domain\admin cmd โ€“ Run once with saved password
  • ๐Ÿ“Ž net accounts โ€“ View password policy

โš™๏ธ 81โ€“100: Admin Tools & PowerShell

  • ๐Ÿ’ฌ wmic os get caption โ€“ Windows version
  • ๐Ÿ“ฆ wmic product get name,version โ€“ List installed programs
  • ๐Ÿงฐ eventvwr โ€“ Open Event Viewer
  • ๐Ÿ“ compmgmt.msc โ€“ Computer Management
  • ๐Ÿงพ services.msc โ€“ Service console
  • ๐Ÿ› ๏ธ devmgmt.msc โ€“ Device Manager
  • ๐Ÿงฐ diskmgmt.msc โ€“ Disk Management
  • ๐Ÿ“œ taskschd.msc โ€“ Task Scheduler
  • ๐Ÿ“ฆ resmon โ€“ Resource Monitor
  • ๐Ÿ”ง perfmon โ€“ Performance Monitor
  • โšก powershell โ€“ Launch PowerShell
  • ๐Ÿ“˜ Get-Command โ€“ List all PowerShell commands
  • ๐Ÿงฑ Get-Service โ€“ List services
  • ๐Ÿ” Get-Process โ€“ View processes
  • ๐Ÿ“ฆ Install-WindowsFeature โ€“ Add server features (Server OS only)
  • ๐Ÿ“ฅ Get-EventLog โ€“ Read event logs
  • ๐Ÿ“„ Get-Content file.txt โ€“ Read file contents
  • ๐Ÿ“Š Get-Volume โ€“ View volume info
  • ๐Ÿšจ Restart-Computer โ€“ Restart system
  • โŒ Stop-Computer โ€“ Shutdown system

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top