EASYENTRA

Knowledge Base

How to Export an Exchange Online Mailbox to PST via PowerShell

Use case: Use this procedure when you need to export one or more mailboxes to a PST file in a consistent and repeatable way, for example for backup, archiving, migration, or compliance purposes. A PST (Personal Storage Table) file is the file format used by Microsoft Outlook.

Note: EasyEntra PST export only exports emails. Other mailbox items, like contacts and calendar events are not exported. Always verify the contents of the .pst file after export.

To export a mailbox to PST via PowerShell, use the built-in CmdLet Invoke-EEMailboxToPst:

Invoke-EEMailboxToPst [-Identity] <string> [-Filename <string>] [-StartDate <DateTime>] [-EndDate <DateTime>] [-Environment { Global | USGov | USGovDod }] [-ShowBanner <bool>]

  • Start a PowerShell 7 command prompt using the same credentials you use to run EasyEntra.
  • Optionally set the output path for the PST file, start date, and end date for the export in the EasyEntra GUI application or by manually editing the configuration file.
    • If authentication is configured in EasyEntra, PST export will automatically authenticate (useful for bulk exports).
    • If authentication is not configured, you will be prompted for credentials. Use the Environment switch to specify USGovDod if this is your hosting environment.
  • Review the output after the process completes, either manually or programmatically.
    • The overall completion status is available in the Status property [Completed | CompletedWithWarning | CompletedWithError | FatalError]
    • A detailed task log is available in the TaskLog property of the result.
  • To schedule the process, ensure the scheduled task runs in the security context of a user account with a local user profile that holds the EasyEntra configuration and authentication.
  • Make sure to protect the scheduled task so only authorized personnel can modify job settings.
How to invoke EEMailboxToPst.

Additional PowerShell Cmdlets

EasyEntra includes additional PowerShell cmdlets for common administrative tasks.

For a complete list, open Settings in EasyEntra.

The available PowerShell cmdlets are listed in EasyEntra Settings.

Related Articles

ID:KB_119_HowtoInvokeEEMailboxToPst