PowerTip: Discover Short PowerShell Aliases

Summary: Use wildcard characters to find Windows PowerShell cmdlet aliases.

Hey, Scripting Guy! Question How can I display all one-letter Windows PowerShell cmdlet aliases?

Hey, Scripting Guy! Answer Get-Alias ?

Comments (3)

  1. The function of Walid is really great aswell.

  2. Walid Toumi says:

    Hi Ed,

    you can also display property alias with this:

    get-alias | ForEach {

        $cmd=get-command $_.definition

        $alias=$cmd.parameters | select -expand values | select -expand Aliases

        new-object PSObject -prop @{

           Name = $_.definition

           Alias = $_.Name

           AliasProperty = $alias



  3. Ed Wilson says:

    @Walid Toumi this is a great suggestion. Thank you so much for sharing. I love property aliases.

Skip to main content