Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find top PowerShell cmdlet nouns

$
0
0

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.


Viewing all articles
Browse latest Browse all 3333

Trending Articles