PowerTip: Find Aliases for Your Favorite PowerShell Commands

PowerTip: Find Aliases for Your Favorite PowerShell Commands

  • Comments 1
  • Likes

Summary: Find aliases for your favorite Windows PowerShell commands.

Hey, Scripting Guy! Question How can I find shortcut names for the long command names I am always typing when I work from the Windows PowerShell console?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet and specify the name of the long command you want to shorten
          in the –definition parameter. The following technique returns aliases for the Get-CimClass cmdlet:

Get-Alias -Definition Get-CimClass

Note  Not all cmdlets have aliases, but you can easily create your own by using the New-Alias cmdlet.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Nice