Import one or more PST files into an exisiting mailbox or a archive.
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.
- Windows Server 2012 R2
- Exchange Server 2013+
- GlobalFunctions PowerShell Module, https://www.powershellgallery.com/packages/GlobalFunctions
Mailbox identity in which the PST files get imported
Import PST files into the online archive.
Folder which contains the PST files. Has to be an UNC path.
Import the PST files into dedicated target folders. The folder name will equal the file name.
Standard is set to 0. Don't max it out because the script doesn't add "AcceptLargeDatalost".
If set the script continue with the next PST file if a import request failed.
Timespan to wait between import request staus checks in seconds. Default:
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/*).
Import the files in to definied target folder. Can't be used together with FilenameAsTargetFolder
If this parameter is set all PST files in subfolders will be also imported
Rename successfully imported PST files to simplify a re-run of the script. A .PST file will be renamed to .imported
.\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
Download and vote at TechNet Gallery
Written by: Thomas Stensitzki
- My Blog: http://justcantgetenough.granikos.eu
- Twitter: https://twitter.com/stensitzki
- LinkedIn: http://de.linkedin.com/in/thomasstensitzki
- Github: https://github.com/Apoc70
For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos