PowerTip: Find top PowerShell cmdlet nouns

Doctor Scripto

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.


Discussion is closed.

Feedback usabilla icon