Using PowerShell for view and export information about mailbox migration to Office 365 | Part 4#5 5/5 (1) 6 min read

The current article is the continuation of the former article, in which we review the various PowerShell cmdlets that we can use for viewing, and export information about the process of Exchange mailbox migration process.

The “mailbox migration” PowerShell commands that we review in this article are:

  • Get-MigrationStatistics
  • Get-MigrationUser
  • Get-MigrationUserStatistics

In addition, we review the PowerShell commands that we can use for getting information about on-Premises environment

1. Migration Statistics | Get-MigrationStatistics

Get + Export Information | Migration Statistics

The PowerShell command Get-MigrationStatistics, provide us information about the migration process using properties such as – Synced Count,Total Count and more.

Get information about Migration Statistics

PowerShell command syntax

PowerShell console output example

Get + Export information about Migration Statistics | Example

Additional reading

Get-MigrationStatistics

Migration Users

Get + Export Information | Migration Users

As mentioned, each Exchange mailbox must have a “user account” that is associated with the mailbox (mailbox owner).

The PowerShell command that we use for getting information about the user account that is “attached” to the mailbox that we migrate are:

  • Get-MigrationUser
  • Get-MigrationUserStatistics

2. Get migraiotion user information | Get-MigrationUser

The PowerShell command – Get-MigrationUser, display information about the user account properties that is associated with the Exchange mailbox that we migrate + high level information about the mailbox migrated content.

Get information about specific “Migration User”

PowerShell command syntax

PowerShell console output example

Export information about specific “Migration User” | TXT File

Export information about ALL “migration users” | TXT File

To get information about ALL “migration users” + export the information to text file, we can use the PowerShell command example:

PowerShell command example

Export information about ALL “migration users” | View specific properties | TXT File

If we want to “refine” the result and view the most relevant information we can use the following PowerShell syntax:

PowerShell command example

3. Get migraiotion user Statistics information | Get-MigrationUserStatistics

The PowerShell command Get-MigrationUserStatistics will get us additional information about “migrated user” that is associated with the mailbox that we migrate + more detailed information about the mailbox content meaning, mail items that are migrated.

Get information about specific “Migration User Statistics”

PowerShell command syntax

PowerShell console output example

Export information about specific “Migration User Statistics” | TXT File

Export information about specific “Migration User Statistics” + more detailed information | TXT File

In this scenario, we add the following additional parameters: IncludeReport , Diagnostic and IncludeSkippedItems that could help us to get more details.

PowerShell command example

Export “Migration User Statistics” All Migration User + Detailed information | XML File

In this scenario, we get the most detailed Statistics information about ALL the existing “Migration Users” and export the information to XML file.

PowerShell command example

5. On-Premise infrastructure information

The current article series is dedicated to the Office 365 and Exchange Online environment but in some troubleshooting scenario, we will need to get more information about the “on-Premises infrastructure”.

For example, we get migration errors that are related to a specific user, or a specific mailbox.
We suspect that the issue can be realities to a problem with the On-Premise Active Directory user account or, to a “problematic Exchange On-Premises mailbox”.

On-Premise Active Directory

Export information about On-Premise Active Directory user

To get information about specific Active Directory user account + export the information to TXT file we can use the following PowerShell command

PowerShell command example

Note – the following PowerShell command, should be executed from the On-Premise environment, using a Domain controller server or a server that include Active Directory PowerShell cmdlets.

Exchange on-Premises infrastructure

To get information about specific Exchange on-Premises mailbox we can use the following two PowerShell commands:

  • Get-Mailbox
  • Get-MailboxStatistics
Note – the following PowerShell command, should be executed from the On-Premise environment, using an Exchange on-Premises PowerShell.

Get-Mailbox PowerShell command

To get information about specific Exchange on-Premises mailbox + export the information to TXT file, we can use the following syntax:

Export information about Exchange on-Premises mailbox

PowerShell command example

Get-MailboxStatistics PowerShell command

The PowerShell command Get-MailboxStatistics, can help us to get a very detailed information about Exchange mailbox “structure”, that include information about each mailbox folder, the number of mail items in each folder and much more.

Export information about Exchange on-Premises mailbox tatistics | TXT file

Export information about Exchange on-Premises mailbox tatistics | CSV file



Using PowerShell for view and export information about mailbox migration to Office 365

The following PowerShell script will help you in a scenario in which you perform mailbox migration from your Exchange On-Premise environment to Office 365 (Exchange Online).
The PowerShell script includes various menus that will export information about a specific migrated mailbox, specific migration batch, information about migration endpoints and more.

You can find additional information about the subject of exporting information about mailbox migration in the following articles:

Now it’s Your Turn!
It is important for us to know your opinion on this article

Restore Exchange Online mailbox | Article series index

Summary
Using PowerShell for view and export information about mailbox migration to Office 365 | Part 4#5
Article Name
Using PowerShell for view and export information about mailbox migration to Office 365 | Part 4#5
Description
The current article is the continuation of the former article, in which we review the various PowerShell cmdlets that we can use for viewing, and export information about the process of Exchange mailbox migration process. The “mailbox migration” PowerShell commands that we review in this article are:Get-MigrationStatistics Get-MigrationUser Get-MigrationUserStatistics In addition, we review the PowerShell commands that we can use for getting information about on-Premises environment
Author
Publisher Name
o365info.com
Publisher Logo

Related Post

Please rate this

Eyal Doron on EmailEyal Doron on FacebookEyal Doron on GoogleEyal Doron on LinkedinEyal Doron on PinterestEyal Doron on RssEyal Doron on TwitterEyal Doron on WordpressEyal Doron on Youtube
Eyal Doron
Share your knowledge.
It’s a way to achieve immortality.
Dalai Lama

Leave a Reply

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