Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Measure-Object

Measure-Object - Powershell 3.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 [[-Property] <String[]>] [-Average] [-InputObject <PSObject>] [-Maximum] [-Minimum] [-Sum] [<CommonParam
Measure-Object [[-Property] <String[]>] [-Character] [-IgnoreWhiteSpace] [-InputObject <PSObject>] [-Line] [-Word] [<Co

The Measure-Object cmdlet calculates the property values of certain types of object. Measure-Object performs three type
s 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 calculate 
the minimum, maximum, sum, and average of the numeric values. For text objects, it can count and calculate the number o
f lines, words, and characters.