Powershell Alias

Familiar looking commands like Dir or Ls are in fact Powershell aliases of Get-Childitem. There are many built-in aliases in Powershell and you can even create your own, using the New-Alias  cmdlet eg.

 

To get a list of aliases on your system run:

 

The default Aliases are:

NameResolvedCommand
%ForEach-Object
?Where-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
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
No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scripting
Install Vmware PowerCLI

PowerCLI is really easy to install now. From an Administrative Powershell window just enter: Install-Module -Name VMware.PowerCLI Minimum Powershell Version must be v3.   Offline Install of PowerCLI Accessing the PowerCLI Modules We’re now ready to download the PowerCLI modules. This task will require a system with internet access. This …

Scripting
Pass credentials with Powershell – 3 Ways

Interactive Here’s your typical scenario.   You have a script that requires credentials internally.  So to provide those credentials you would do something like $MyCredentials=GET-CREDENTIAL –credential “CONTOSO\Username” and you of course see a box like this normally on the screen Then you would type in the password and life would go …

Deployment
MDT – Joining a Computer to a Domain Using PowerShell

Using PowerShell scripts within a task sequence provides more flexibility than using the CustomSettings.ini file to join a computer to a domain. The parameters of the CustomSettings.ini file are common to any deployment you perform. That’s why creating a custom PowerShell script to join your domain will be customize to …