5 min read

PowerShell Aliases

Alias Original Short Description
? Where-Object Filters objects based on a condition.
% ForEach-Object Performs an operation on each item in a collection.
ac Add-Content Adds content to a file.
cat Get-Content Gets the content of a file.
cd Set-Location Changes the current working directory.
chdir Set-Location Changes the current working directory.
clc Clear-Content Deletes the content of a file.
clear Clear-Host Clears the console screen.
clhy Clear-History Clears the command history.
cli Clear-Item Clears the value of an item.
clp Clear-ItemProperty Clears the value of an item property.
cls Clear-Host Clears the console screen.
clv Clear-Variable Clears the value of a variable.
cnsn Connect-PSSession Creates and connects to a persistent connection to a remote computer.
compare Compare-Object Compares two sets of objects.
copy Copy-Item Copies an item from one location to another.
cp Copy-Item Copies an item from one location to another.
cpi Copy-Item Copies an item from one location to another.
cpp Copy-ItemProperty Copies a property and its value from one item to another.
cvpa Convert-Path Converts a path from one format to another.
dbp Disable-PSBreakpoint Disables a breakpoint.
del Remove-Item Deletes an item.
diff Compare-Object Compares two sets of objects.
dir Get-ChildItem Gets the child items in a location.
dnsn Disconnect-PSSession Disconnects from a PSSession.
ebp Enable-PSBreakpoint Enables a breakpoint.
echo Write-Output Writes output to the console.
epal Export-Alias Exports aliases to a file.
epcsv Export-Csv Exports data to a CSV file.
erase Remove-Item Deletes an item.
etsn Enter-PSSession Starts an interactive session with a remote computer.
exsn Exit-PSSession Ends an interactive session with a remote computer.
fc Format-Custom Formats output using a custom format.
fhx Format-Hex Formats output as hexadecimal.
fl Format-List Formats output as a list of properties.
foreach ForEach-Object Performs an operation on each item in a collection.
ft Format-Table Formats output as a table.
fw Format-Wide Formats output to use the available width.
gal Get-Alias Gets the aliases defined in the current session.
gbp Get-PSBreakpoint Gets the breakpoints set in the current session.
gc Get-Content Gets the content of a file.
gcb Get-Clipboard Gets the content of the clipboard.
gci Get-ChildItem Gets the child items in a location.
gcm Get-Command Gets information about commands.
gcs Get-PSCallStack Gets the current call stack.
gdr Get-PSDrive Gets the PSDrives in the current session.
gerr Get-Error Gets the error records.
ghy Get-History Gets the command history.
gi Get-Item Gets an item.
gin Get-ComputerInfo Gets computer information.
gjb Get-Job Gets PowerShell background jobs.
gl Get-Location Gets the current working directory.
gm Get-Member Gets the members of an object.
gmo Get-Module Gets the modules that are imported in the current session.
gp Get-ItemProperty Gets the properties of an item.
gps Get-Process Gets the processes running on the computer.
gpv Get-ItemPropertyValue Gets the value of an item property.
group Group-Object Groups objects that contain the same value for a specified property.
gsn Get-PSSession Gets the PSSessions in the current session.
gsv Get-Service Gets the services on the computer.
gtz Get-TimeZone Gets the time zone.
gu Get-Unique Filters a list to return only unique elements.
gv Get-Variable Gets PowerShell variables.
h Get-History Gets the command history.
history Get-History Gets the command history.
icm Invoke-Command Runs commands on local and remote computers.
iex Invoke-Expression Runs a string as a command.
ihy Invoke-History Invokes a command from the command history.
ii Invoke-Item Invokes an item.
ipal Import-Alias Imports aliases from a file.
ipcsv Import-Csv Imports data from a CSV file.
ipmo Import-Module Imports a module.
irm Invoke-RestMethod Invokes a RESTful web service.
iwr Invoke-WebRequest Sends HTTP and HTTPS requests to a web page or web service.
kill Stop-Process Stops a process.
ls Get-ChildItem Gets the child items in a location.
man help Displays help information.
md mkdir Creates a new directory.
measure Measure-Object Measures properties of objects.
mi Move-Item Moves an item from one location to another.
mount New-PSDrive Creates a new PowerShell drive.
move Move-Item Moves an item from one location to another.
mp Move-ItemProperty Moves a property from one item to another.
mv Move-Item Moves an item from one location to another.
nal New-Alias Creates a new alias.
ndr New-PSDrive Creates a new PowerShell drive.
ni New-Item Creates a new item.
nmo New-Module Creates a new module.
nsn New-PSSession Creates a new PSSession.
nv New-Variable Creates a new variable.
ogv Out-GridView Sends output to a Grid View window.
oh Out-Host Sends output to the console.
popd Pop-Location Changes the current working directory to the last directory pushed onto the stack.
ps Get-Process Gets the processes running on the computer.
psedit Open-EditorFile Opens a file in the default text editor.
pushd Push-Location Adds the current working directory to a stack.
pwd Get-Location Gets the current working directory.
r Invoke-History Invokes a command from the command history.
rbp Remove-PSBreakpoint Removes a breakpoint.
rcjb Receive-Job Gets the results of a PowerShell background job.
rcsn Receive-PSSession Receives results from a PSSession.
rd Remove-Item Deletes an item.
rdr Remove-PSDrive Removes a PowerShell drive.
ren Rename-Item Renames an item.
ri Remove-Item Deletes an item.
rjb Remove-Job Deletes a PowerShell background job.
rm Remove-Item Deletes an item.
rmdir Remove-Item Deletes an empty directory.
rmo Remove-Module Removes a module.
rni Rename-Item Renames an item.
rnp Rename-ItemProperty Renames a property of an item.
rp Remove-ItemProperty Removes a property from an item.
rsn Remove-PSSession Removes a PSSession.
rv Remove-Variable Removes a variable.
rvpa Resolve-Path Resolves a path to its canonical form.
sajb Start-Job Starts a PowerShell background job.
sal Set-Alias Creates or changes an alias.
saps Start-Process Starts a new process.
sasv Start-Service Starts a service.
sbp Set-PSBreakpoint Sets a breakpoint.
scb Set-Clipboard Sets the content of the clipboard.
select Select-Object Selects properties of an object.
set Set-Variable Sets the value of a variable.
shcm Show-Command Displays a GUI to construct and run a command.
si Set-Item Sets the value of an item.
sl Set-Location Changes the current working directory.
sleep Start-Sleep Suspends the current thread for a specified time.
sls Select-String Finds text in strings and files.
sort Sort-Object Sorts objects by property values.
sp Set-ItemProperty Sets the value of an item property.
spjb Stop-Job Stops a PowerShell background job.
spps Stop-Process Stops a process.
spsv Stop-Service Stops a service.
start Start-Process Starts a new process.
stz Set-TimeZone Sets the time zone.
sv Set-Variable Sets the value of a variable.
tee Tee-Object Sends output to the console and a file.
type Get-Content Gets the content of a file.
where Where-Object Filters objects based on a condition.
wjb Wait-Job Waits for a PowerShell background job to complete.
write Write-Output Writes output to the console.