BACK
TOP
The full guide of PowerShell that any developer needs to know – Aliases
Matías Creimerman - Buenos Aires, Argentina - 2019-10-23

In PowerShell (PS) you can use Aliases wich are short name of cmdlets, command, function, script, file or executable.

You can get all PS aliases with this cmdlet:

Get-Alias

You can create/change your own aliases, for example:

Set-Alias -Name ping -Value Test-NetConnection

Now you can use ping instead Test-NetConnection

When the session is end you lost all your aliases, so is a good practice to save your aliases in a script or file and import them when you start a new session in PS.

Extra documentation:

This content is property of Matias Creimerman
Any misuse of this material will be punishable
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
Creative Commons License