PowerTip: Find the Top 10 Most-Utilized PowerShell Verbs

PowerTip: Find the Top 10 Most-Utilized PowerShell Verbs

Rate This
  • Comments 2

Summary: Learn how to find the top 10 most-utilized Windows PowerShell verbs.

Hey, Scripting Guy! Question How can I find out the top 10 Windows PowerShell verbs?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet and select all of the verbs. Next, group the verbs, sort them, and select the first ten. This is shown here, where gcm is an alias for Get-Commandgroup is an alias for the Group-Object cmdlet, sort is an alias for Sort-Object, and select is an alias for Select-Object.

gcm -Verb * | group verb  -NoElement | sort count -Descending  | select -First 10

Leave a Comment
  • Please add 2 and 3 and type the answer here:
  • Post
  • great trick!

  • @Serhad MAKBULOGLU thanks! I thought it was pretty cool, and the technique can be used with other things as well ... not just counting cmdlets :-)

Page 1 of 1 (2 items)