Get-Alias - Powershell 1.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Get-Alias
Description Return alias names for Cmdlets Usage Options -name string[] The alias to retrieve. By default, all aliases defined for the current session. (the "-Name" is optional) -passThru Pass the object created by this cmdlet through the pipeline. By defau lt, this cmdlet does not pass any objects through the pipeline. -scope string The scope in which this alias is valid. Valid values are "Global", "Local", or "Script", or a number relative to the current scope ( 0 through the number of scopes, where 0 is the current scope and 1 is its parent). "Local" is the default. For more, type "get-help about_scope". -exclude string[] Omit the specified items, wildcards allowed e.g. "*ms*" CommonParameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable. Example(s) Retrieve all aliases for the current session, displaying the cmdlet and the alias name: PS C:\>get-alias Retrieve all aliases that start with the letter S PS C:\>get-alias -name s* Retrieve all aliases that reference the Set-Location cmdlet : PS C:\>get-alias | where-object {$_.Definition -match "Set-Location"} Retrieve all built-in aliases (these have the ReadOnly option set): PS C:\>get-alias | where-object {$_.Options -match "ReadOnly"}