Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Measure-Object

Measure-Object - Powershell 1.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 »

Measure-Object

Description
Measure the properties of an object

Usage


Options


Example(s)
Count the number of files and folders in the current directory:

PS C:\>get-childitem | measure-object

Display the size of the largest and the size of the smallest file in the current directory:

PS C:\>get-childitem | measure-object -property length -minimum -maximum

Count the number of words in the file SS64.txt

PS C:\>get-content C:\SS64.txt | measure-object -word