Powershell
Essential PowerShell Commands Help
Discovery & Exploration
These build intuition for how PowerShell objects behave.
- Get-Command — Find commands by name, verb, or module
- Get-Help <cmd> -Online — Open full docs in browser
- Get-Member — Inspect object properties/methods
- Get-Module -ListAvailable — See what’s installed
- Import-Module — Load modules explicitly
Filesystem & Path Operations
Perfect for modular utilities that need predictable path handling.
- Get-ChildItem (ls) — Enumerate files/folders
- Resolve-Path — Convert relative → absolute
- Join-Path — Safe path concatenation
- Test-Path — Check existence
- New-Item / Remove-Item — Create/delete files or folders
- Copy-Item / Move-Item — File operations
Filtering, Sorting, and Shaping Output
These are the backbone of clean, signature output.
- Where-Object — Filter objects
- Sort-Object — Sort by property
- Select-Object — Choose or rename properties
- Format-Table -AutoSize — Clean tabular output
- Format-List * — Full detail dump
Diagnostics & Troubleshooting
Your tactical debugging zone.
- Test-NetConnection — Ping, port tests, traceroute
- Resolve-DnsName — DNS lookup
- Get-NetAdapter — NIC info
- Get-EventLog / Get-WinEvent — Event logs
- Get-Process / Stop-Process — Process control
- Get-Service / Restart-Service — Service management
Scripting & Automation Essentials
These commands matter when building modular systems.
- Read-Host — Prompt for input
- Write-Output / Write-Host — Output control
- Start-Job / Receive-Job — Background tasks
- Start-Process — Launch external apps
- Invoke-Expression — Execute dynamic code (use sparingly)
- Invoke-RestMethod — API calls
- Invoke-Command — Remote execution
Security & Credentials
Useful for utilities that need secure handling.
- Get-Credential — Secure credential prompt
- ConvertTo-SecureString — Encrypt strings
- Export-Clixml / Import-Clixml — Secure credential storage
