Friday, September 2, 2011

PowerShell 101 - Command List

Basic Commands

help
get-help
get-command
get-help get-command
get-help get-command -examples
get-process

Pipes

get-help about_pipelines
get-process | get-member
ipconfig | findstr "Address"

Variables
$process = get-process
 
Array (collections)
$TempProcess = get-process
$tempProcess[1].CPU
$tempProcess[0].CPU

Advanced Help
get-help about_objects | more
get-help about_methods | more
get-help about_pipelines | more
get-help about_properties | more
get-help about_command_syntax | more
get-help about_foreach | more