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

PowerTip: Group PowerShell Cmdlet Count by Version

$
0
0

Summary: Learn how to group Windows PowerShell cmdlet counts by version.

Hey, Scripting Guy! Question How can I see the version of the modules that contain various cmdlets in Windows PowerShell 5.0?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet to return all of the cmdlets, and then pipe the results to the Group-Object 
           cmdlet and group and sort by version.

gcm | group version | sort version -Descending

Note  gcm is an alias for Get-Commandgroup is an alias for Group-Object, and sort is an alias for Sort-Object.


Viewing all articles
Browse latest Browse all 3333

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom



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