Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeEmailMailbox

Module PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Email.EmailMailbox OfficeIMO.Email.EmailMailboxReadResult

Reads a native mbox mailbox with bounded per-message diagnostics.

Syntax

Get-OfficeEmailMailbox [-AsResult] [-Options <EmailMailboxReaderOptions>] [-Path] <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Read a bounded mbox mailbox with diagnostics.

$options = New-OfficeEmailMailboxReaderOptions -MaxMessageCount 5000
Get-OfficeEmailMailbox -Path .\Archive.mbox -Options $options -AsResult

Parameters

-AsResult SwitchParameter optional
Return the mailbox read result with diagnostics.
-Options EmailMailboxReaderOptions optional
Optional mailbox variant and input limits.
-Path String requiredposition: 0pipeline: True (ByValue)
Path to an mbox or mbx file.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.