Windows CMD, PowerShell & Shortcuts
Your quick-reference cockpit for Windows troubleshooting: modern PowerShell cmdlets, classic CMD repair tools, instant Win+R admin consoles, and time-saving keyboard shortcuts.
0 PowerShell Verb-Noun Anatomy
Unlike cryptic short commands, every PowerShell cmdlet reads like a plain English action: Verb-Noun (always singular!).
Get-Process -Name chrome
Get-Process, Get-Service, and Get-ChildItem (never Processes or Services).
1 Essential PowerShell Cmdlets
Master these 8 core cmdlets and you can inspect almost anything on a Windows machine.
Get-Help
Get-Help Get-Service -ExamplesGet-Command
Get-Command *network*Get-Service
Running or Stopped.Get-Service -Name wuauserv (Windows Update)Get-Process
Get-Process | Sort-Object CPU -Descending | Select-Object -First 5Get-WinEvent
Get-WinEvent on Windows 10/11 & PowerShell 7+.Get-WinEvent -LogName System -MaxEvents 10Test-NetConnection
ping that also tests if a specific TCP port (like 443 or 3389) is open.Test-NetConnection -ComputerName 1.1.1.1 -Port 443Select-Object
Get-Service | Select-Object Name, Status -First 10Where-Object
-eq, -gt, -like).Get-Service | Where-Object Status -eq 'Running'2 Classic Windows CMD & Network Commands
These classic utilities work in both cmd.exe and PowerShell. Commands marked Admin require opening the terminal as Administrator.
ipconfig /all
ipconfig /flushdns clears your local DNS cache.sfc /scannow
dism /online /cleanup-image /restorehealth
sfc /scannow if SFC fails.chkdsk C: /f
/f fixes errors (schedules on next reboot for C:).chkdsk C:tasklist
tasklist /fi "imagename eq notepad.exe"taskkill /PID 1234 /F
/F forces termination.taskkill /IM notepad.exe /Fnetstat -ano
-o) using each port.netstat -ano | findstr :80803 System Run Dialog & Keyboard Shortcuts
Press Win+R anywhere in Windows to open the Run box, type a short name below, and hit Enter.
services.msc
eventvwr.msc
devmgmt.msc
diskmgmt.msc
resmon
msconfig
regedit
โก Essential Windows Shortcuts
- Power User Menu (Terminal, Disk, Device)Win+X
- Open Task Manager directlyCtrl+Shift+Esc
- Lock your PC immediatelyWin+L
- Open Clipboard HistoryWin+V
- Open Run DialogWin+R
๐ป Terminal Speed Keys
- Autocomplete cmdlet / file pathTab
- Cancel / stop running commandCtrl+C
- Cycle previous commandsโ / โ
- Search command history (PowerShell)Ctrl+R
- Clear terminal screencls
4 Windows vs Linux Command Equivalents
Switching between Linux and Windows? Use this quick translation table. PowerShell also includes built-in aliases like ls, cat, and ps for convenience.
| Task | Linux (Bash) | Windows CMD | PowerShell |
|---|---|---|---|
| List files | ls -la |
dir /a |
Get-ChildItem -Force |
| Search text in files | grep "err" log.txt |
findstr "err" log.txt |
Select-String "err" log.txt |
| Print file contents | cat file.txt |
type file.txt |
Get-Content file.txt |
| Running processes | ps aux |
tasklist |
Get-Process |
| Current directory | pwd |
cd |
Get-Location |
| Clear screen | clear |
cls |
Clear-Host |
5 The Danger Zone
Command-line tools do not send deleted files to the Recycle Bin. Double-check your target path and drive letter every single time.
Remove-Item -Path C:\target -Recurse -Force-WhatIf first to preview what would be deleted!HKLM (HKEY_LOCAL_MACHINE) Registry Without BackupHKLM controls system-wide hardware, drivers, and boot settings. A wrong edit can prevent Windows from booting. Safer habit: Right-click the key in regedit โ Export to save a .reg backup first.format D: (or Format-Volume)diskmgmt.msc or Get-Volume before formatting.