PowerTip: Find Aliases for Your Favorite PowerShell Commands

Doctor Scripto

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.


Discussion is closed.

Feedback usabilla icon