Windows Administration

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.

โฑ๏ธ 10 min read๐ŸŸข Beginner Friendly๐Ÿ“… Updated: 2026

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
Verb (Action) Get Read / Retrieve
Noun (Target) Process Running app
Parameter -Name Filter by name
Argument chrome Value to match
Memory Trick: PowerShell nouns are always singular โ€” it's Get-Process, Get-Service, and Get-ChildItem (never Processes or Services).
CMD (cmd.exe) Plain Text Stream "chrome.exe 4120 Console" "svchost.exe 1088 Services" Just characters โ€” hard to filter Manual String Parsing findstr / for /f PowerShell .NET Object Pipeline { Name: "chrome", Id: 4120, CPU: 14.2, WorkingSet: ... } Structured properties & methods Pipe (|) By Property | Where-Object CPU -gt 10
CMD passes raw text; PowerShell passes live objects with named properties you can filter and sort cleanly.

1 Essential PowerShell Cmdlets

Master these 8 core cmdlets and you can inspect almost anything on a Windows machine.

Get-Help
Built-in Manual
Shows syntax, parameters, and real usage examples for any cmdlet.
Example: Get-Help Get-Service -Examples
Get-Command
Discover Cmdlets
Finds all available commands matching a keyword when you forget the exact name.
Example: Get-Command *network*
Get-Service
Check Windows Services
Lists background services and whether they are Running or Stopped.
Example: Get-Service -Name wuauserv (Windows Update)
Get-Process
Inspect Running Apps
Shows active processes, PIDs, CPU time, and memory usage.
Example: Get-Process | Sort-Object CPU -Descending | Select-Object -First 5
Get-WinEvent
Read Event Logs (replaces Get-EventLog)
Queries modern Windows Event Logs (System, Application, Security). Use Get-WinEvent on Windows 10/11 & PowerShell 7+.
Example: Get-WinEvent -LogName System -MaxEvents 10
Test-NetConnection
Ping + Port Tester
Supercharged ping that also tests if a specific TCP port (like 443 or 3389) is open.
Example: Test-NetConnection -ComputerName 1.1.1.1 -Port 443
Select-Object
Pick Specific Columns
Keeps only the properties you care about, or grabs the first/last N items.
Example: Get-Service | Select-Object Name, Status -First 10
Where-Object
Filter Results
Filters objects in the pipeline based on a condition (-eq, -gt, -like).
Example: 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
Full Network Details
Displays IPv4/IPv6 addresses, subnet mask, default gateway, DNS servers, and MAC address.
Bonus: ipconfig /flushdns clears your local DNS cache.
sfc /scannow
System File Checker Admin
Scans all protected Windows system files and automatically replaces corrupted ones.
Run after crashes or weird Windows errors.
dism /online /cleanup-image /restorehealth
Repair Windows Image Admin
Fixes the underlying Windows component store using Windows Update. Run this before sfc /scannow if SFC fails.
Tip: Needs an internet connection to fetch clean files.
chkdsk C: /f
Check & Fix Disk Errors Admin
Scans the drive for file system corruption and bad sectors. /f fixes errors (schedules on next reboot for C:).
Read-only check without reboot: chkdsk C:
tasklist
List Running Processes
Shows every running program, its Process ID (PID), and memory usage in CMD.
Filter by name: tasklist /fi "imagename eq notepad.exe"
taskkill /PID 1234 /F
Force-Close Frozen Apps
Terminates a stuck process by PID or image name. /F forces termination.
By name: taskkill /IM notepad.exe /F
netstat -ano
Active Ports & Owning PID
Lists all active TCP/UDP connections, listening ports, and the Process ID (-o) using each port.
Find what's on port 8080: netstat -ano | findstr :8080

3 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
Services Console
Start, stop, restart, or disable Windows background services.
eventvwr.msc
Event Viewer
Inspect crash logs, app errors, boot warnings, and security audit events.
devmgmt.msc
Device Manager
Check hardware status, update/roll back drivers, and spot yellow warning icons.
diskmgmt.msc
Disk Management
View drives, initialize new SSDs, shrink/extend partitions, and change drive letters.
resmon
Resource Monitor
Real-time deep dive into which process is locking a file, hogging disk I/O, or using network bandwidth.
msconfig
System Configuration
Boot into Safe Mode, perform a clean boot, and manage boot options.
regedit
Registry Editor Admin
Browse and edit Windows configuration keys (always export a backup before changing!).

โšก 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

โš ๏ธ High-Risk Commands โ€” Read Before Pressing Enter

Command-line tools do not send deleted files to the Recycle Bin. Double-check your target path and drive letter every single time.

1. Remove-Item -Path C:\target -Recurse -Force
Permanently deletes a folder and everything inside it without asking for confirmation. Safer habit: Add -WhatIf first to preview what would be deleted!
2. Editing HKLM (HKEY_LOCAL_MACHINE) Registry Without Backup
HKLM 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.
3. format D: (or Format-Volume)
Wipes the entire partition or USB drive clean. Always verify the drive letter using diskmgmt.msc or Get-Volume before formatting.