PowerTip: Find All Two-Letter PowerShell Aliases


Summary: Find all two letter aliases.

Hey, Scripting Guy! Question How can I see all defined two-letter Windows PowerShell aliases?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet and a wildcard character combination:

Get-Alias ??

Comments (2)

  1. Chen V says:

    Helpful. When we need to use alias in remoting ?
    Get-Alias | Where {$_.RemotingCapability -eq ‘None’} so this alias wont have remoting capability ?

  2. DC says:

    So much cleaner then my version!
    gal | select Name,Definition,@{N=’AliasLength’;E={$_.Name.Length}} | ? AliasLength -eq 2

Skip to main content