Contact Info

Crumbtrail

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

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

Compare-Object

Short description
Compares two sets of objects.

Syntax
Compare-Object [-ReferenceObject] <PSObject[]> [-DifferenceObject] <PSObject[]> [-CaseSensitive] [-Culture <string>
    ] [-ExcludeDifferent] [-IncludeEqual] [-PassThru] [-Property <Object[]>] [-SyncWindow <int>] [<CommonParameters>]

Description
The Compare-Object cmdlet compares two sets of objects. One set of objects is the Reference set, and the other set 
    is the Difference set. 
    
    The result of the comparison indicates whether a property value appeared only in the object from the Reference set 
    (indicated by the <= symbol), only in the object from the Difference set (indicated by the => symbol) or, if the In
    cludeEqual parameter is specified, in both objects (indicated by the == symbol).