Import one or more PST files into an exisiting mailbox or a archive
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.md
README.md
Start-MailboxImport.ps1

README.md

Start-MailboxImport.ps1

Import one or more PST files into an exisiting mailbox or a archive.

Description

This script imports one or more PST files into a user mailbox or a user archive as batch.

PST file names can used as target folder names for import. PST files are renamed to support file name limitations by New-MailboxImportRequest cmdlet.

All files of a given folder will be imported into the user's mailbox.

Notes

Requirements

Parameters

Identity

Mailbox identity in which the PST files get imported

Archive

Import PST files into the online archive.

FilePath

Folder which contains the PST files. Has to be an UNC path.

FilenameAsTargetFolder

Import the PST files into dedicated target folders. The folder name will equal the file name.

BadItemLimit

Standard is set to 0. Don't max it out because the script doesn't add "AcceptLargeDatalost".

ContinueOnError

If set the script continue with the next PST file if a import request failed.

SecondsToWait

Timespan to wait between import request staus checks in seconds. Default:

IncludeFolders

If set the import would only import the given folder + subfolders. Note: If you want to import subfolders you have to use /* at the end of the folder. (Test/*).

TargetFolder

Import the files in to definied target folder. Can't be used together with FilenameAsTargetFolder

Recurse

If this parameter is set all PST files in subfolders will be also imported

RenameFileAfterImport

Rename successfully imported PST files to simplify a re-run of the script. A .PST file will be renamed to .imported

Examples

.\Start-MailboxImport.ps1 -Identity testuser -Filepath "\\testserver\share"

Import all PST files into the mailbox "testuser"

.\Start-MailboxImport.ps1 -Identity testuser -Filepath "\\testserver\share\*" -FilenameAsTargetFolder -SecondsToWait 90

Import all PST files into the mailbox "testuser". Use PST file name as target folder name. Wait 90 seconds between each status check

TechNet Gallery

Download and vote at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Related blog post: https://www.granikos.eu/en/justcantgetenough/PostId/234/simple-import-of-multiple-pst-files-for-a-single-user

Social

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos