PowerTip: Find top PowerShell cmdlet nouns

The Scripting Guys


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.

The Scripting Guys
Dr Scripto

Follow Dr   

No Comments.