PowerTip: Examine PowerShell Cmdlet Coverage

Doctor Scripto

Summary: Learn how to examine where Windows PowerShell cmdlets come from.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find which modules supply the most cmdlets of a particular type?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet and specify a particular verb (such as Get), pipe the resulting objects
           to the Group-Object cmdlet to group by the ModuleName property, then sort the results in a
           descending fashion, for example:

get-command -verb get | group ModuleName | sort count -Descending

0 comments

Discussion is closed.

Feedback usabilla icon