Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Get-Alias

Get-Alias - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Alias

Short description
Gets the aliases for the current session.

Syntax
Get-Alias [[-Name] <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]
Get-Alias [-Definition <String[]>] [-Exclude <String[]>] [-Scope <String>] [<CommonParameters>]





Description
The Get-Alias cmdlet gets the aliases (alternate names for commands and executable files) in the current session. This 
includes built-in aliases, aliases that you have set or imported, and aliases that you have added to your Windows Power
Shell profile.


By default, Get-Alias takes an alias and returns the command name. When you use the Definition parameter, Get-Alias tak
es a command name and returns its aliases.


Beginning in Windows PowerShell 3.0, Get-Alias displays non-hyphenated alias names in an "<alias> -> <definition>" form
at to make it even easier to find the information that you need.