Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Measure-Object

Measure-Object - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Calculates the numeric properties of objects, and the characters, words, and lines in string objects, such as files
 of text.

Measure-Object [-Average] [-Maximum] [-Minimum] [-Sum] [[-Property] <string[]>] [-InputObject <psobject>] [<CommonP

Measure-Object [-Character] [-IgnoreWhiteSpace] [-Line] [-Word] [[-Property] <string[]>] [-InputObject <psobject>] 

The Measure-Object cmdlet calculates the property values of certain types of object. Measure-Object performs three 
types of measurements, depending on the parameters in the command.
The Measure-Object cmdlet performs calculations on the property values of objects. It can count objects  and calcul
ate the minimum, maximum, sum, and average of the numeric values. For text objects, it can count and calculate the 
number of lines, words, and characters.