skip to Main Content

Migrate Exchange mailboxes through text file

You want to migrate users to a new database or new Exchange Server. You can migrate mailboxes with the Exchange Admin Center (EAC) and select the users one by one or work with PowerShell. This article will show you how to migrate Exchange mailboxes through a text file with PowerShell. This way, you can make multiple text files with users and migrate each batch to an Exchange mailbox database.

Configure the text file

Open up Notepad and fill in the e-mail addresses that you want to migrate.

Migrate Exchange mailboxes through text file add addresses.png

Save it as a text file called migrate1.txt and place it in the following path C:\migrate on your Exchange Server. If you don’t have a folder called migrate, create it.

Migrate Exchange mailboxes through text file create text file.png

Do you need a list of all the mailboxes in a database or entire organization? Have a look at the article get mailbox sizes in PowerShell Exchange.

Read the text file

Run Exchange Management Shell as administrator. Change directory to the migrate folder path and read the text file. It will display the content of the text file.

List the databases included count mailboxes

Before you move mailboxes, it’s always good to verify the target mailbox database. Run the following command to list the databases in the organization.

Migrate mailboxes through a text file to a particular database

Suppose you want to migrate the mailboxes to the DB03 database, run the command with the -WhatIf parameter placed at the end. The -WhatIf parameter allows you to see what will happen if you run the command. No changes will be made.

Run the command without the -WhatIf parameter to migrate the mailboxes to the database.

Suspend the migration

If you want to suspend (pause) the migration, use the Suspend-MoveRequest cmdlet.

Verify the suspend status

Resume the migration

When you want to resume the migration, make use of the Resume-MoveRequest cmdlet.

Check status of the migration

Run the following command to check the status of the migration.

You can also check if the e-mail addresses in the text file got migrated to the target database.

The mailboxes migrated successfully to the target database. Did you migrate a text batch with mailboxes to a database in Exchange?

Keep reading: Export a list of mailboxes to text in Exchange »

Conclusion

In this article, you learned how to migrate Exchange mailboxes through a text file. Migrating mailboxes with a text file in Exchange is excellent to do. Exact steps and the right approach is essential if you need to migrate a lot of users. If you can make batches of the mailboxes in text files and select a target database for each batch, you can migrate fast. It’s also nice that you can quickly verify if the mailboxes in the text file got migrated to the target database.

Did you enjoy this article? You may also like Exchange 2010 end of life support is coming. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top