Summary#

This documents list PowerShell 7/5 default aliases as well as some additions and changes introduced in PowerShell 7 aliases.

You can obtain the alias list by running the command Get-Alias from a PowerShell command line or you can check the System.Management.Automation.dll and the file InitialSessionState.cs

PowerShell 5 Built-In Aliases#

Last Updated: 22/04/2023

AliasCommand
?Where-Object
%ForEach-Object
acAdd-Content
asnpAdd-PSSnapIn
catGet-Content
cdSet-Location
chdirSet-Location
clcClear-Content
clearClear-Host
clhyClear-History
cliClear-Item
clpClear-ItemProperty
clsClear-Host
clvClear-Variable
cnsnConnect-PSSession
compareCompare-Object
copyCopy-Item
cpCopy-Item
cpiCopy-Item
cppCopy-ItemProperty
curlInvoke-WebRequest
cvpaConvert-Path
dbpDisable-PSBreakpoint
delRemove-Item
diffCompare-Object
dirGet-ChildItem
dnsnDisconnect-PSSession
ebpEnable-PSBreakpoint
echoWrite-Output
epalExport-Alias
epcsvExport-Csv
epsnExport-PSSession
eraseRemove-Item
etsnEnter-PSSession
exsnExit-PSSession
fcFormat-Custom
flFormat-List
foreachForEach-Object
ftFormat-Table
fwFormat-Wide
galGet-Alias
gbpGet-PSBreakpoint
gcGet-Content
gciGet-ChildItem
gcmGet-Command
gcsGet-PSCallStack
gdrGet-PSDrive
ghyGet-History
giGet-Item
gjbGet-Job
glGet-Location
gmGet-Member
gmoGet-Module
gpGet-ItemProperty
gpsGet-Process
gpvGet-ItemPropertyValue
groupGroup-Object
gsnGet-PSSession
gsnpGet-PSSnapIn
gsvGet-Service
guGet-Unique
gvGet-Variable
gwmiGet-WmiObject
hGet-History
historyGet-History
icmInvoke-Command
iexInvoke-Expression
ihyInvoke-History
iiInvoke-Item
ipalImport-Alias
ipcsvImport-Csv
ipmoImport-Module
ipsnImport-PSSession
irmInvoke-RestMethod
isepowershell_ise.exe
iwmiInvoke-WMIMethod
iwrInvoke-WebRequest
killStop-Process
lpOut-Printer
lsGet-ChildItem
manhelp
mdmkdir
measureMeasure-Object
miMove-Item
mountNew-PSDrive
moveMove-Item
mpMove-ItemProperty
mvMove-Item
nalNew-Alias
ndrNew-PSDrive
niNew-Item
nmoNew-Module
npsscNew-PSSessionConfigurationFile
nsnNew-PSSession
nvNew-Variable
ogvOut-GridView
ohOut-Host
popdPop-Location
psGet-Process
pushdPush-Location
pwdGet-Location
rInvoke-History
rbpRemove-PSBreakpoint
rcjbReceive-Job
rcsnReceive-PSSession
rdRemove-Item
rdrRemove-PSDrive
renRename-Item
riRemove-Item
rjbRemove-Job
rmRemove-Item
rmdirRemove-Item
rmoRemove-Module
rniRename-Item
rnpRename-ItemProperty
rpRemove-ItemProperty
rsnRemove-PSSession
rsnpRemove-PSSnapin
rujbResume-Job
rvRemove-Variable
rvpaResolve-Path
rwmiRemove-WMIObject
sajbStart-Job
salSet-Alias
sapsStart-Process
sasvStart-Service
sbpSet-PSBreakpoint
scSet-Content
selectSelect-Object
setSet-Variable
shcmShow-Command
siSet-Item
slSet-Location
sleepStart-Sleep
slsSelect-String
sortSort-Object
spSet-ItemProperty
spjbStop-Job
sppsStop-Process
spsvStop-Service
startStart-Process
sujbSuspend-Job
svSet-Variable
swmiSet-WMIInstance
teeTee-Object
trcmTrace-Command
typeGet-Content
wgetInvoke-WebRequest
whereWhere-Object
wjbWait-Job
writeWrite-Output

PowerShell 7 Built-In Aliases#

Last Updated: 22/04/2023

AliasCommand
?Where-Object
%ForEach-Object
acAdd-Content
catGet-Content
cdSet-Location
chdirSet-Location
clcClear-Content
clearClear-Host
clhyClear-History
cliClear-Item
clpClear-ItemProperty
clsClear-Host
clvClear-Variable
cnsnConnect-PSSession
compareCompare-Object
copyCopy-Item
cpCopy-Item
cpiCopy-Item
cppCopy-ItemProperty
cvpaConvert-Path
dbpDisable-PSBreakpoint
delRemove-Item
diffCompare-Object
dirGet-ChildItem
dnsnDisconnect-PSSession
ebpEnable-PSBreakpoint
echoWrite-Output
epalExport-Alias
epcsvExport-Csv
epsnExport-PSSession
eraseRemove-Item
etsnEnter-PSSession
exsnExit-PSSession
fcFormat-Custom
flFormat-List
foreachForEach-Object
ftFormat-Table
fwFormat-Wide
galGet-Alias
gbpGet-PSBreakpoint
gcGet-Content
gciGet-ChildItem
gcmGet-Command
gcsGet-PSCallStack
gdrGet-PSDrive
gerrGet-Error
ghyGet-History
giGet-Item
gjbGet-Job
glGet-Location
gmGet-Member
gmoGet-Module
gpGet-ItemProperty
gpsGet-Process
gpvGet-ItemPropertyValue
groupGroup-Object
gsnGet-PSSession
gsvGet-Service
guGet-Unique
gvGet-Variable
gwmiGet-WmiObject
hGet-History
historyGet-History
icmInvoke-Command
iexInvoke-Expression
ihyInvoke-History
iiInvoke-Item
ipalImport-Alias
ipcsvImport-Csv
ipmoImport-Module
ipsnImport-PSSession
irmInvoke-RestMethod
isepowershell_ise.exe
iwmiInvoke-WMIMethod
iwrInvoke-WebRequest
killStop-Process
lsGet-ChildItem
manhelp
mdmkdir
measureMeasure-Object
miMove-Item
mountNew-PSDrive
moveMove-Item
mpMove-ItemProperty
mvMove-Item
nalNew-Alias
ndrNew-PSDrive
niNew-Item
nmoNew-Module
npsscNew-PSSessionConfigurationFile
nsnNew-PSSession
nvNew-Variable
ogvOut-GridView
ohOut-Host
popdPop-Location
psGet-Process
pushdPush-Location
pwdGet-Location
rInvoke-History
rbpRemove-PSBreakpoint
rcjbReceive-Job
rcsnReceive-PSSession
rdRemove-Item
rdrRemove-PSDrive
renRename-Item
riRemove-Item
rjbRemove-Job
rmRemove-Item
rmdirRemove-Item
rmoRemove-Module
rniRename-Item
rnpRename-ItemProperty
rpRemove-ItemProperty
rsnRemove-PSSession
rujbResume-Job
rvRemove-Variable
rvpaResolve-Path
rwmiRemove-WMIObject
sajbStart-Job
salSet-Alias
sapsStart-Process
sasvStart-Service
sbpSet-PSBreakpoint
scSet-Content
selectSelect-Object
setSet-Variable
shcmShow-Command
siSet-Item
slSet-Location
sleepStart-Sleep
slsSelect-String
sortSort-Object
spSet-ItemProperty
spjbStop-Job
sppsStop-Process
spsvStop-Service
startStart-Process
sujbSuspend-Job
svSet-Variable
swmiSet-WMIInstance
teeTee-Object
trcmTrace-Command
typeGet-Content
whereWhere-Object
wjbWait-Job
writeWrite-Output

Interesting Changes#

  • The Aliases wget and curl that were mapping to Invoke-WebRequest have been removed from PowerShell 7. The only one left is the iwr
  • New alias added to PowerShell 7 gerr mapping to the new Get-Error function
  • The following aliases from PowerShell 5 were removed in PowerShell 7:
    • asnp -> Add-PSSnapIn
    • gsnp -> Get-PSSnapIn
    • rsnp -> Remove-PSSnapin
    • lp -> Out-Printer

Related Articles

Other threads in the archive worth reading next.