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

PowerTip: Examine PowerShell Cmdlet Coverage

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>