Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Group-Object

Group-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 »

Group-Object

Short description
Groups objects that contain the same value for specified properties.

Syntax


Description
The Group-Object cmdlet displays objects in groups based on the value of a specified property. Group-Object returns
 a table with one row for each property value and a column that displays the number of items with that value.

If you specify more than one property, Group-Object first groups them by the values of the first property, and then
, within each property group, it groups by the value of the next property.