Quick PowerShell nuggets that should be second nature
Get-Service
display a list of servicesGet-Process
display a list of running processesGet-Eventlog
displays contents of event logNew-Service
Create a new serviceTest-Connection
Ping type utilityTest-NetConnection
Better network ping and port utility
Find out where the PowerShell Modules live
Get-Content env:psmodulepath
List available powershell modules
Get-Module -listavailable
List currently loaded modules
Get-Module
Import-modules
Import-Module <MODULENAME>
Get commands for a specific module
Get-Command -module servermanager
Get the application log for all computers in the names.txt file
Get-Eventlog -logtype application -computer (Get-Content names.txt)
Sorting output by an attribute in descending order
Get-Process | Sort-Object -property vm
Get-Process | Sort-Object vm -descending
Get-Process | Sort-Object vm,id -desc
Get information and output to html file
Get-Process | Select-Object name,vm,id,pm | ConvertTo-Html | Out-File test1.html