Compare-Object


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



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net