Open-MapiPackedBinary

Description

This cmdlet opens a previously saved MAPI item that was exported in PowerMAPI's Packed Binary format.

Syntax
Note: Parameters in orange are optional.
Open-MapiPackedBinary
-FileNameString
Parameters
FileNameA text string that is the full path to an existing Packed Binary file.
Remarks

This cmdlet opens a Packed Binary file so that the item's properties, recipients, and attachments can be read or viewed.

Refer to the remarks in Export-MapiPackedBinary for details about PowerMAPI's Packed Binary format.

The returned object is opened offline and does not require a MAPI session.  This allows for "offline" work against Packed Binary data.

The Packed Binary object returned has the following key properties to access the item's contents:

PropertyDescription
MessageClassThis is a text string that identifies the type of item, for example IPM.Appointment for a calendar item.
IsAssociatedMessageThis is a Boolean value indicating whether the original MAPI item was an associated item in a folder.  Associated items are hidden items in folder to private application data.
MessageFlagsThis is a flag value from the original MAPI item that indicates various states in which the original item may have been.  For example, this value will hold a flag to show whether the item has been read or unread.
PropsThis is a hashtable of properties from the item where the Key of each item is the Mapi.NET.Tags prop ID of the property and the Value of each item is a Mapi.NET.Wrappers.PropValue item from which the value can be retrieved.
RecipientsThis is a list of Mapi.NET.Utils.PackedBinaryProperties objects.  Each list item is a hash table of properties similar to the Props property listed above and where each list item is the properties of a recipient.  All recipient types are in this list: TO, CC, and BCC (if any).
AttachmentsThis is also a list of Mapi.NET.Utils.PackedBinaryProperties object.  In the same way that the recipients are listed, the attachments are listed here.  Access to both the attachment metadata and the attachment binary are available.