PowerTip: Find All Two-Letter PowerShell Aliases

PowerTip: Find All Two-Letter PowerShell Aliases

  • Comments 2
  • Likes

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 ??

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Helpful. When we need to use alias in remoting ? Get-Alias | Where {$_.RemotingCapability -eq 'None'} so this alias wont have remoting capability ?

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