Powershell
Basics
get-command set* # Searches for all cmdlets that start with "set"
alias # List all aliases in shell
Get-ChildItem # Same as ls, dir, and gci
Copy-Item # Same as cp, copy, and cpi
Move-Item # Same as mv, move, and mi
Select-String # Same as sls and similar to grep
Get-Help # Get help!!
Get-Content # Same as cat, type, gc
Get-Process # Same as ps, gps
Get-Location # Same as pwd, gl
Get-Member # Get properties and methods of objects - USEFUL!!!!
ps | format-list -property name, id, starttime # Formatted list of process properties
ls env: # List all PS environment variables
ls variable: # List all PS variablesGetting Help
help gci # displays help for Get-ChildItem
help gci -detailed # Very verbose help information
help gci -examples # Examples on how to USE it!!!
help gci -full # Pretty much everything it has about it
Remove-Item *.* -WhatIf # Explains what WOULD happen, but not actually do itPipeline Objects
Enumerate Local Users
Enumerate AD Users
Searching
Navigate Registry
Networking
Speaking to the Users!
Last updated