PowerTip: Return Specific Number of PowerShell Cmdlets


Summary: Learn how to return only a specific number of Windows PowerShell cmdlets.

Hey, Scripting Guy! Question How can I find only four Windows PowerShell cmdlets that use the verb Get, without seeing a
           long scrolling list of found cmdlets?

Hey, Scripting Guy! Answer Use the TotalCount parameter of the Get-Command cmdlet, for example:

Get-Command -Verb get -TotalCount 4

Comments (0)

Skip to main content