PowerTip: Find top PowerShell cmdlet nouns


Summary: Learn how to find the top five nouns in Windows PowerShell cmdlets.

Hey, Scripting Guy! Question How can I find which nouns are the most prevalent in Windows PowerShell cmdlets?

Hey, Scripting Guy! Answer You need to find all of the cmdlet names, group them by noun, sort them by count, and then select only
           the first five, for example:

gcm * -CommandType cmdlet | group noun -noelement | sort count -Descending | select -First 5

Note gcm is an alias for Get-Command.


Comments (0)

Skip to main content