PowerTip: Find PowerShell Aliases that Rename Commands

PowerTip: Find PowerShell Aliases that Rename Commands

  • Comments 1
  • Likes

Summary: Use Windows PowerShell to find aliases that rename commands.

Hey, Scripting Guy! Question How can I find Windows PowerShell aliases that rename commands?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet, pipe the results to Where-Object, and look for a hyphen in the name:

Get-Alias | Where name -Match '-' | select name, definition

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Strange, I didn't see any output :)