Get-Alias

  Microsoft.PowerShell.Utility
Module Version:

3.1.0.0

NAME:
Get-Alias
DESCRIPTION:

The Get-Alias cmdlet gets the aliases 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 PowerShel
l profile.

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

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

EXAMPLES:

SYNTAX:

SYNOPSIS:
Gets the aliases for the current session.
INPUTS:

System.String
You can pipe alias names to Get-Alias .

OUTPUTS:

System.Management.Automation.AliasInfo
Get-Alias returns an object that represents each alias. Get-Alias returns the same object for every alias, but Windows PowerShell uses an arrow-based format to display the names of non-h
yphenated aliases.

PARAMETERS:

-Definition
Specifies an array of aliases for the specified item. Enter the name of a cmdlet, function, script, file, or executable file.

This parameter is called Definition , because it searches for the item name in the Definition property of the alias object.

Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false

-Exclude
Specifies an array of items that this cmdlet omits. The value of this parameter qualifies the Name and Definition parameters. Enter a name, a definition, or a pattern, such as s*. Wi
ldcards are permitted.

Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false

-Name
Specifies the aliases that this cmdlet gets. Wildcards are permitted. By default, Get-Alias retrieves all aliases defined for the current session. The parameter name Name is optional
. You can also pipe alias names to Get-Alias .

Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false

-Scope
Gets only the aliases in the specified scope. The acceptable values for this parameter are:

– Global

– Local

– Script

– 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 information, see about_Scopes.

Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

LEAVE A COMMENT