February 17th, 2013

PowerTip: Find Your Personal PowerShell Aliases

Doctor Scripto
Scripter

Summary: Learn how to find your personally created Windows PowerShell aliases.

Hey, Scripting Guy! Question I need a way to identify personally created Windows PowerShell aliases. How can I easily do this?

Hey, Scripting Guy! Answer When creating a custom alias, specify the Description property. You can then search for aliases that use that description, as shown here.

New-Alias -Name dog -Value get-content -Description ‘mred alias’

Get-Alias | ? description -match ‘mred’

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.