You can use Stellar Migrator for Exchange to Migrate mailboxes from Microsoft 365 to an on premise Exchange server. This software will directly access the mailboxes on the cloud-based server and migrate them to the source server.
Steps to migrate mailboxes from Microsoft 365 to Exchange server using Stellar Migrator for Exchange
- Download and open Stellar Migrator for Exchange. From the Login ribbon, select Login and enter your User ID and Password. Click on Log in. The Status will change to Connected and you will be able to see the number of available licenses. Click on OK.

- Configure General setting of the job
- Enter the Job Name.
- Select Microsoft 365 as the source server type.
- Select Exchange server as the destination server type.
- Once you have configured the General settings, click on Next.

- Choose the mailbox types (Primary, Archive, or Public Folders) you want to migrate. You can select them separately or together to make sure that only required data is transferred to Microsoft 365.

Note: You must migrate public folders to Microsoft 365 as a separate job. - Now you need to connect the software to the source Microsoft 365 account. To connect the Target Microsoft 365 account to the software, you will have the following options:
Auto registration: With this option, you will be redirected to the Office 365 login window and there you will have to login with the Global admin account credentials. Auto app registration - Source window appears, displaying the registration process. This includes steps such as registering the application in Azure AD, and assigning Microsoft Graph API permissions. When the registration is successful, the check icon next to each step, such as Registering the application in Azure AD, assigning Microsoft Graph API permissions, and granting admin consent for these permissions, will turn green.
Manual Registration: If you select this option you will have to manually register an application with Azure AD and note the client ID, tenant IDs and client secret value. You then need to enter these values in the respective fields and connect to Microsoft 365.

- The next section is Source mailboxes and here you can see the list of mailboxes that the software found on the source Microsoft 365 account. Although, If you did not use a CSV file, you will be able to view up to 100 mailboxes. If you have more than 100 mailboxes, you can click on Load mailboxes using CSV, Upload a CSV file and view all the mailboxes. Once you have viewed the list of source mailboxes, Click on Next.

- Now you need to connect the target Exchange server with the software. For this:
You can use the Autodiscover option by checking the Use Autodiscover Email option checkbox. With this option, you can establish the connection with your Exchange server by entering the email ID and password.
You can manually enter the IP address or the Exchange server name along with the user credentials and establish the connection with the Exchange server.
Click on Validate to check the credentials and then click Next.
Note: Ensure you have the necessary administrative credentials with impersonation rights to allow Stellar Migrator for Exchange to access and manage the mailboxes on behalf of users.

- The next section is Target mailboxes and here you can see the list of mailboxes that the software found on the target Exchange server. Although, if you did not use a CSV file for the mailboxes, you will be able to view up to 100 mailboxes. If you have more than 100 mailboxes, you can click on Load mailboxes using CSV, Upload a CSV file and view all the mailboxes. Once you have viewed the list of target mailboxes, Click on Next.

- In the next step, you will have to map the mailboxes on the source Microsoft 365 account to the mailboxes on the Exchange server. If you have uploaded a CSV file, all the mailboxes will be already mapped. Otherwise, the software will map the mailboxes using the mailbox IDs. However, if there is no matching mailbox ID the mailbox will remain unmapped and you will have to map the mailboxes manually. For this:
Click on the ellipsis icon in front of the unmapped mailbox and select a mailbox from the list to map it.
You can also click on the ellipsis icon in front of a mailbox that is mapped and remove or change the mapping.
The priority section shows you the order in which the software will pick the mailboxes to migrate. You can change this priority form this section. Once you have made all the changes, click Next.

- Configure the Scheduler. Choose how the migration job should run:
Run manually – start the migration on demand.

Schedule job – click the Scheduler button to set the frequency (Run once, Daily, Weekly, or Monthly), start and end times, and duration.

The description field at the bottom previews the configured schedule. Click Next once configured.
- In the Date filter section, You will get the following options:
- Migrate All Items: If you select this option all the mailbox data will be migrated.
- Migrate items older than: If you select this option, the mailbox data that is older than the selected date will be migrated
- Migrate items not older than: If you select this option, the software will migrate the mailbox data that was received after the selected date.
- Migrate items from: With this option you can select a date range and the mailbox items that fall in that date range will be migrated.

- Next is the Folder type filter section, here you can include or exclude specific folders from being migrated. By default all, the folders are selected, if you want to exclude a particular folder you can un-check the check box in front of that folder.

-
Configure Max Concurrency. Set the migration speed and resilience options:
Concurrent mailbox migration threads (5 recommended)
Concurrent item migration threads per mailbox (5 recommended)
Retry attempts in case of network failure (default: 2)

- Review and confirm all configuration settings before proceeding with the migration. If you want to make changes in any section, you can select that section and make the changes. Once you have confirmed all the changes, click on Finish.

- The created job will be displayed on the Job screen. You have to click on Start under the Job ribbon to initiate the migration.

- When you start the job, the status of that job turns to green as shown in the image. On the screen, you can see the progress and details of the complete job and you can see the progress of as single mailbox along with other details.

- At any point, you can pause the migration process by using the Pause button under the Job ribbon. In the paused state, the status of the job will turn yellow. To resume the job click on Resume under the Job ribbon.

- When you scroll towards the right, in the job progress section, you can see the migration status of the mailboxes. If any mailbox fails to migrate, you can see the reason here; fix it and then re-run the migration. The software supports incremental migration and no duplicate data will be transferred.

- Similarly, you can see view the status of items in a particular mailbox. For this, select the mailbox from the Job progress screen and check the details in the mailbox progress section.

- At any point, you can generate a Migration report for all the mailboxes or a particular mailbox. By clicking on the save icon. You can save this generated report on your system.

- Once a mailbox is migrated, the Action status for it, changes from Migrate to Don’t Migrate. Additionally, the Migration progress will change to Completed. When the Migration progress of all the mailboxes is changed to Completed, the job will be done.
- You can then access your Target Exchange server and check if all the mailboxes are migrated successfully.




