PowerShell
Common PowerShell commands (cmdlets) for Windows administration.
File & Object Management
| Command | Description |
|---|---|
| Get-ChildItem | List files and directories (ls, dir) |
| Set-Location | Change current directory (cd) |
| New-Item | Create new file or directory |
| Remove-Item | Delete file or directory (rm, del) |
| Copy-Item | Copy file or directory (cp, copy) |
| Move-Item | Move file or directory (mv, move) |
| Get-Content | View file content (cat, type) |
Process & Service
| Command | Description |
|---|---|
| Get-Process | Get running processes |
| Stop-Process | Stop a process |
| Get-Service | Get installed services |
| Start-Service | Start a service |
| Restart-Service | Restart a service |
Networking
| Command | Description |
|---|---|
| Test-NetConnection | Test connectivity (ping + port) |
| Resolve-DnsName | DNS lookup (nslookup/dig) |
| Get-NetIPAddress | Get IP configuration |