skip to Main Content

Migrate Exchange mailboxes through text file

You need to migrate users to a new database or new Exchange Server. You can migrate mailboxes with the graphic user interface (GUI) of Exchange and select the users one by one or work with PowerShell. In this article, you will learn 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 a database in Exchange.

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 following 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

It’s always good to verify the database where you going to move the mailboxes to. Run the following command to list the databases in the organization.

Migrate mailboxes through a text file to a particular database

If you want to migrate the mailboxes to the DB03 database, run the following command. Place a -WhatIf parameter on the end of the command to test the command.

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. Run the following command.

Verify the suspend status

Resume the migration

When you want to resume the migration. Run the command.

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 by running the following command.

The mailboxes migrated successfully to the target database. Did you migrate a text batch with mailboxes to a database 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 great to do. Clear steps and a good approach is important 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 of the batches, you can migrate fast. It is also nice that you can easily verify if the mailboxes in the text file got migrated to the target database. If you enjoyed this article, you may also like Exchange 2010 end of life support is coming. Don’t forget to follow us.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect and IT Consultant. His specialism is designing and building complex enterprise environments. He started Information Technology at a very young age, and his goal is to teach and inspire others. Connect with ALI TAJRAN on social media. Read more »

This Post Has 0 Comments

Leave a Reply

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

Back To Top