PowerTip: Return Specific Number of PowerShell Cmdlets

Doctor Scripto

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


Discussion is closed.

Feedback usabilla icon