Skip to content
💠

PowerShell Shortcuts

Terminal

By EZ4Code Team

Cmdlets

6
ShortcutDescriptionPlatform
Get-HelpShow help for cmdletall
Get-CommandList all commandsall
Get-ChildItemList items (ls)all
Set-LocationChange directory (cd)all
Copy-ItemCopy item (cp)all
Remove-ItemRemove item (rm)all

Pipeline

6
ShortcutDescriptionPlatform
|Pipe output to next commandall
| Select-ObjectSelect propertiesall
| Where-ObjectFilter objectsall
| Sort-ObjectSort objectsall
| ForEach-ObjectIterate objectsall
| Export-CsvExport to CSVall

Variables

6
ShortcutDescriptionPlatform
$var = valueAssign variableall
$env:PATHAccess environment variableall
$_ Current pipeline objectall
$PSItemCurrent pipeline object (alias)all
Get-VariableList all variablesall
Remove-VariableDelete variableall

Functions

5
ShortcutDescriptionPlatform
function Name {}Define functionall
param()Declare parametersall
returnReturn valueall
Get-Command -CommandType FunctionList functionsall
Remove-Item Function:NameRemove functionall

Remoting

6
ShortcutDescriptionPlatform
Enter-PSSessionStart interactive sessionall
Exit-PSSessionEnd sessionall
Invoke-CommandRun command remotelyall
New-PSSessionCreate persistent sessionall
Get-PSSessionList sessionsall
Remove-PSSessionClose sessionall

More Shortcuts