Compares the properties of objects.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Compare-Object
[-ReferenceObject] <PSObject[]> [-DifferenceObject] <PSObject[]> [-SyncWindow <Int32>] [-Property <Object[]>] [-ExcludeDifferent] [-IncludeEqual] [-PassThru] [-Culture <String>] [-CaseSensitive] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The Compare-Object Cmdlet compares two object streams and returns the result of the comparison. In the return of the comparison, there are pointers to where e ach object or property came from. They are:
"<=" means the data in this object is from the reference object
"=>" means the data in this object is from the compared object
"==" means the data came from both