January 21st, 2014

PowerTip: Find Aliases for Your Favorite PowerShell Commands

Doctor Scripto
Scripter

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.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback