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

PowerTip: Find PowerShell Noun Distribution

$
0
0

Summary: Learn how to see which nouns in Windows PowerShell are used most.

Hey, Scripting Guy! Question How can I find which Windows PowerShell cmdlet nouns are used most?

Hey, Scripting Guy! Answer Import all the modules, then use the Get-Command cmdlet to retrieve all cmdlet information, and group by noun. You can also use the following commands to sort the results by count.

Note   Gmo is an alias for Get-Moduleipmo is an alias for Import-Modulegcm is an alias for Get-Commandgroup is an alias for Group-Objectsort is an alias for Sort-Object, and more is a Windows PowerShell function.)

gmo -li | ipmo

gcm | group noun -NoElement | sort count -Descending | more

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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