PowerTip: Find Which PowerShell Cmdlets Have Most Aliases

Dr Scripto

Summary: Find out which Windows PowerShell cmdlets have the most defined aliases.

Hey, Scripting Guy! Question How can I determine which Windows PowerShell cmdlets have the most aliases?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet and group by the definition. Sort the count in a descending manner, and select the top 10 items. The following command accomplishes this task where gal is an alias for Get-Aliasgroup is an alias for Group-Objectsort is an alias for Sort-Object, and select is an alias for Select-Object.

gal | group definition | sort count -Descending | select -First 10



Comments are closed. Login to edit/delete your existing comments