Contact Info

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

Measure-Object - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


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.