A function to merge or join two objects. For example, to merge an entry from “Get-MailboxStatistics” with information about storage limits set on the account in Active Directory. This small function demonstrates how the Property members of two objects might be merged. Common properties on the additional object are discarded.

Usage example

1 Comment

  1. I’d like to push an improvement to this function. Is this available on Github?

    1. A parameter to favor a property value on object X over object Y
    2. Act like null and/or defaults are ignored when comparing for priority
    3. Deep merge of specific types : list, hashtable, psobject, etc

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *