# Get-OfficeEmailMigrationPlan

Plans an offline PST migration to a Thunderbird mailbox bundle without writing files.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Email.Store.EmailStoreMailboxMigrationPlan`

**Source**

[GetOfficeEmailMigrationPlanCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Email/GetOfficeEmailMigrationPlanCommand.cs#L14) 

Plans an offline PST migration to a Thunderbird mailbox bundle without writing files.

## Syntax

```
Get-OfficeEmailMigrationPlan
[-CheckpointInterval <Int32>]
[-LossPolicy <Block|Warn|Allow>]
[-MaxItems <Int32>]
[-OutputDirectory] <String>
[-Path] <String>
[-Resume]
[<CommonParameters>]
```

[#](#method-get-officeemailmigrationplan-int32-emailconversionlosspolicy-int32-string-string-switchparameter)

Parameter set: `Path`

```
Get-OfficeEmailMigrationPlan
[-CheckpointInterval <Int32>]
-LiteralPath <String>
[-LossPolicy <Block|Warn|Allow>]
[-MaxItems <Int32>]
[-OutputDirectory] <String>
[-Resume]
[<CommonParameters>]
```

[#](#method-get-officeemailmigrationplan-int32-string-emailconversionlosspolicy-int32-string-switchparameter)

Parameter set: `LiteralPath`

## Description

CanMigrate reports the outcome of source folder and destination checks. Convert-OfficeEmailStore counts items and enforces MaxItems during migration.

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

### Inspect the source folder count, destination and checkpoint paths.

```powershell
Get-OfficeEmailMigrationPlan -LiteralPath './Archive[2026].pst' -OutputDirectory ./Migrated
```

## 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.

**-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:9B41B99EF185B584F9F39FDDD10C27D1804592EF11D74F55E8D5C4FB92C02E21 -->
