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

PowerTip: Find Stats with PowerShell

$
0
0

Summary: Use Windows PowerShell to find stats of objects.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see the minimum, maximum, and average values of a
           specific property in a series of objects?

Hey, Scripting Guy! Answer Pipe the objects to the Measure-Object cmdlet, specify the property you seek, and use
           the AverageMaximumSum, and Minimum switches, for example:

$objects | Measure-Object -Property numberofwords -Sum -Average -Maximum -Minimum 


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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