# Convert-OfficeEmailStore

Migrates a PST to a new, verified Thunderbird mailbox bundle with a durable checkpoint.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Email.Store.EmailStoreMailboxMigrationReport`

**Source**

[ConvertOfficeEmailStoreCommand.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Email/ConvertOfficeEmailStoreCommand.cs#L20) 

Migrates a PST to a new, verified Thunderbird mailbox bundle with a durable checkpoint.

## Syntax

```
Convert-OfficeEmailStore
[-CheckpointInterval <Int32>]
[-LossPolicy <Block|Warn|Allow>]
[-MaxItems <Int32>]
[-OutputDirectory] <String>
[-Path] <String>
[-Resume]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-convert-officeemailstore-int32-emailconversionlosspolicy-int32-string-string-switchparameter-switchparameter-switchparameter)

Parameter set: `Path`

```
Convert-OfficeEmailStore
[-CheckpointInterval <Int32>]
-LiteralPath <String>
[-LossPolicy <Block|Warn|Allow>]
[-MaxItems <Int32>]
[-OutputDirectory] <String>
[-Resume]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-convert-officeemailstore-int32-string-emailconversionlosspolicy-int32-string-switchparameter-switchparameter-switchparameter)

Parameter set: `LiteralPath`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Open Formats and Text Automation](/docs/pswriteoffice/open-text-formats/) Guide
  
  Use the smaller PSWriteOffice families for text, interchange, open formats, and managed message workflows. Includes examples and cmdlet links.
- [Extract and Inspect Documents](/docs/cli/extract-and-inspect/) Guide
  
  Extract Markdown or JSON from documents, inspect files and workbook schemas, query structured data, and validate or patch YAML and TOML.

## Examples

### Migrate a local Outlook archive and return the report.

```powershell
$report = Convert-OfficeEmailStore -Path ./Archive.pst -OutputDirectory ./Migrated
```

### Start a migration with explicit settings and reuse them to resume from a checkpoint.

```powershell
$migration = @{ Path = './Archive.pst'; OutputDirectory = './Migrated'; LossPolicy = 'Warn'; MaxItems = 5000 }
Convert-OfficeEmailStore @migration
# After interruption, if the checkpoint exists:
Convert-OfficeEmailStore @migration -Resume
```

## Parameters

**-CheckpointInterval Int32 optional**

Number of inspected items between checkpoints.

**-LossPolicy EmailConversionLossPolicy optional**

Blocks known loss by default. Warn and Allow publish permitted omissions with diagnostics.

Possible values: `Block`, `Warn`, `Allow`

**-MaxItems Int32 optional**

Maximum number of source items to inspect during migration. The default is 1,000,000. The plan's CanMigrate result covers folder and destination checks. Conversion enforces this limit. If additional items remain, migration reports loss. Block prevents publication. Warn and Allow can publish a verified bundle of messages written within the limit.

**-OutputDirectory String requiredposition: 1**

New migration bundle directory.

**-Path String requiredposition: 0sets: Path**

Source PST file. Wildcards must resolve to one file.

**-Resume SwitchParameter optional**

During planning, checks for a checkpoint or an existing destination directory. Conversion verifies the retained data and checks that the source, destination, loss policy and item limit match the original migration.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

**-LiteralPath String requiredaliases: FullName, PSPathsets: LiteralPath**

Exact source PST file path.

## 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:FE25AFF8331A453AF9F413F756B33812238B5DA4E030D5C43901EFBF3D229A57 -->
