Quantcast
Viewing all articles
Browse latest Browse all 10

PowerTip: Group PowerShell Cmdlet Count by Version

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

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I see the version of the modules that contain various cmdlets in Windows PowerShell 5.0?

Image may be NSFW.
Clik here to view.
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.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

The post PowerTip: Group PowerShell Cmdlet Count by Version appeared first on Windows Wide Open.


Viewing all articles
Browse latest Browse all 10

Trending Articles