# Save-OfficeEmailMailbox

Saves a native mbox mailbox with output diagnostics.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Email.EmailMailbox`

**Outputs**

`OfficeIMO.Email.EmailWriteResult`

**Source**

[SaveOfficeEmailMailboxCommand.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Email/SaveOfficeEmailMailboxCommand.cs#L15) 

Saves a native mbox mailbox with output diagnostics.

## Syntax

```
Save-OfficeEmailMailbox
-Document <EmailMailbox>
[-Options <EmailMailboxWriterOptions>]
[-PassThru]
[-Path] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-save-officeemailmailbox-emailmailbox-emailmailboxwriteroptions-switchparameter-string-switchparameter-switchparameter)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Read and Convert PST, OST, and Mailbox Stores](/docs/email/mailbox-stores/) Guide
  
  Open PST, OST, OLM, mbox, EMLX, Apple Mail, and Maildir stores, export their messages, and convert a store to a new PST with verification.

## Examples

### Save an mboxrd mailbox and return its diagnostics.

```powershell
$options = New-OfficeEmailMailboxWriterOptions -Variant Mboxrd
$mailbox | Save-OfficeEmailMailbox -Path .\Archive.mbox -Options $options -PassThru
```

## Parameters

**-Document EmailMailbox requiredpipeline: True (ByValue)**

Document to save.

**-Options EmailMailboxWriterOptions optional**

Optional mailbox variant, envelope, and output limits.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Path String requiredposition: 0**

Destination mbox path.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:27AF13630615B9BAF45AC47BC320D17B1FB70B2B82CCC913B88486BE44147DA7 -->
