Move Emails From One Account To Another Office 365 PowerShell

 

migrate office 365 to Office 365

Move Emails from One Account to Another Office 365 PowerShell Guide:

If you are an IT Administrator in an organization, then you must have faced situations when you need to move emails/mailboxes from one account to another in Office 365. In this write up, we have come up with all the possible approaches to do the same.

In this blog, we are using the “Search-Mailbox” cmdlets to copy or move emails and mailboxes. Before proceeding further, let’s have a brief introduction to “Search-Mailbox” cmdlet. This cmdlet command finds a mailbox and copy the results to a specific target mailbox, and it removes the emails from the source mailbox after moving to the target mailbox.


PowerShell Scripts to Move Emails from One Account to Another in Office 365:

In order to carry out these scripts, the user needs to be a part of “Discovery Management” group. For understanding just take an example, if you need to use “DeleteContent” switch in “Search-Mailbox” cmdlet for removing the emails from the source mailbox after moving to the target mailbox, then assigning the “Mailbox Import Export” role to “Discovery Management” group.


Common Input Parameters to Move Emails from One Account to Another:

$SourceUserName - Source User Mailbox in Office 365 $TargetUserName - Target User Mailbox in Office 365 $TargetFolderName - Target Folder of Office 365 Target User Mailbox


Subject Based Method to Move Mail from One Account to Another Office 365:

In this example, I will use “Search-Mailbox” cmdlet script to find user1 mailbox containing emails that contain the phrase “Project Task” in the subject and copy those emails to “Project” folder of user2’s mailbox.

$SourceUserName="user1"; $TargetUserName="user2"; $TargetFolderName="Project"; $SubjectName ="Project Tasks"; Search-Mailbox $SourceUserName -SearchQuery "$SubjectName" -TargetMailbox "$TargetUserName" -TargetFolder "$TargetFolderName" -LogLevel Full -SearchDumpster:$false

 

Date Range Based Method to Move Emails from One Account to Another in Office 365:

Here in this example, I will use Search-Mailboxcmdlet script to find abc’s mailbox for emails between a date ranges from 1-January-2020 to 30-March-2020 and copy those emails to “Project” folder of xyz’s mailbox.

Required Input Parameters: $Fromdate, $Todate – Date Range to be searched in Office 365 Source User Mailbox for common parameters refer -

$SourceUserName="abc"; $TargetUserName="xyz"; $TargetFolderName="Project"; $Fromdate ="1/01/2020"; $Todate = "03/30/2020"; $date="Received:"+$Fromdate+".."+$Todate Search-Mailbox $SourceUserName -SearchQuery "$date" -TargetMailbox "$TargetUserName" -TargetFolder "$TargetFolderName" -LogLevel Full


Automated Approach to Move Emails from One Account to Another in Office 365:

Stuck in cmdlet scripts? Don’t worry we will help you out. While performing this operation through PowerShell, it becomes a complex task. And one should also be aware of the downtime involved in it. A minor mistake or miss click in these cmdlets scripts can result in major data encryption or deletion.

Hence, it is suggested to use a handy tool for this operation. O365 to O365 Migrator tool is the best match to move emails from one account to another in Office 365. This is a brilliant utility for carrying out multiple migration projects in O365. This utility ensures a smooth and secure data transfer in O365. Follow the given steps to perform this operation.


Steps to Move Emails from One Account to Another in Office 365:

1.       Download and run the software, select Office 365 as Source and Destination.

2.      Now, select the desired items to migrate from the given options. You can also transfer data selectively using the date-based filter provided in the software.



O365 to O365

3.      Here, login with source and destination Email ID and Application ID credentials. Then, Click on the validate button to validate it.



O365 to O365

4.      Once validation is done then, click on the Next button.



O365 to O365 migration tool

5.      Nowhere, you will get three options to create a mapping between source and destination user’s accounts. Fetch Users, Import Users, Download CSV file select the desired one and create mapping.



O365 to O365 migration tool

6.      Once mapping is created, then, click on the validate button.



O365 to O365 migration tool

After validation of all the permissions. Now click on the start migration button. The migration will start and depending on the size of the data, it will take few minutes to move emails from one account to another in Office 365.

migration O365 to O365


Demo Version of This Utility:

This utility comes with the demo version facility. Users can easily avail themselves of the demo version in order to verify the working performance of this utility. In the demo version, users can migrate two user’s accounts completely, without paying anything. After that users need to purchase the software license.


Final Verdict:

Moving emails from one account to another in Office 365 could be an easy task if we use the right approach. In this write-up, we have come up with both approaches, it depends on users to choose the right one.

PowerShell scripts can create confusion and lead to important data loss. An automated solution can speed up the whole process. By using the above-mentioned tool without any IT knowledge one can easily move emails from one account to another.


Post a Comment

0 Comments