Cmdlet
Save-OfficeEmailMailbox
Saves a native mbox mailbox with output diagnostics.
Syntax
Save-OfficeEmailMailbox
-Document <EmailMailbox>
[-Options <EmailMailboxWriterOptions>]
[-PassThru]
[-Path] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
DocumentExamples
Save an mboxrd mailbox and return its diagnostics.
$options = New-OfficeEmailMailboxWriterOptions -Variant Mboxrd
$mailbox | Save-OfficeEmailMailbox -Path .\Archive.mbox -Options $options -PassThruParameters
- -Document EmailMailbox
- Document to save.
- -Options EmailMailboxWriterOptions
- Optional mailbox variant, envelope, and output limits.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Path String
- Destination mbox path.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- 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.