Thursday, May 23, 2024

Import PST into Mailbox

Often the easiest way to get a PST file into the Exchange Server is simply to attach at to an Outlook client and drag/drop the mail into mailbox. However this is not always effective, especially when you have a few hundred to import, or you want more granular control over what is happening. By placing the PST file on the Server and importing directly is a relatively easy task.

Unfortunately this does not work on Office 365. 🙁

Supposing that the file was located at e:\PSTimport\JoeUser.PST and you needed to import it into the Mailbox for ‘Joe User’, you would use the following command.

New-MailboxImportRequest -Mailbox JoeUser@domain.com -FilePath \\EXCH01\e$\PSTimport\JoeUser.PST -TargetRootFolder /

The options of ‘TargetRootFolder’ is an interesting one, as by specifying a different location you can create a subfolder in the mailbox. This is handy if the archive PST is for an employee that has left, for example, and rather than giving rights to that users mailbox it was decided that a subfolder in another users mailbox was a good place to keep it.

New-MailboxImportRequest -Mailbox BoBUser@domain.com -FilePath \\EXCH01\e$\PSTimport\JoeUser.PST -TargetRootFolder:”Archive – Joe User”

These all run in the background on the Exchange Server, so it may take a few minutes depending on the size. You can keep track of the progress using this command


Get-MailboxImportRequest | ft

to display the status of all the imports that are running.

Mark Rochester
Mark Rochesterhttps://thecloudgeezer.com
Mark currently works in the cloud space assisting large companies to migrate from either on premises to the cloud, or cloud to cloud. His experience with Enterprise migrations spans more than 25 years which basically makes him old. However, with all the oldness creeping up he still finds technology massively exciting. Please reach out for a chat anytime you would like. :-)

Related Articles

Migrate Microsoft 365 Mailboxes to Google Workspace

This is not a very common subject to talk about as most of the migrations that get performed are people moving into the Microsoft...

Microsoft 365 Discovery Report

If you are working with a Microsoft 365 tenant, whether it is for your own or for a client, it is often necessary to...

Batches Paused in ‘Needs Approval’ Status

When you are using the native Microsoft tools to migrate from Google Workspace (Gmail) into Microsoft 365 the tool works very well. It does...

Stay Connected

88FansLike
36,999FollowersFollow
32,381SubscribersSubscribe
- Advertisement -

Latest Articles