PowerShell scripts for Microsoft 365

Your download is in progress and it will be complete in just a few seconds! If you face any issues, download manually here

Thank you for registering with ManageEngine.

We will send the download link to the registered email ID shortly.

Manage and Secure Microsoft 365 with M365 Manager Plus

  • By clicking 'Download 30-day free trial' you agree to processing of personal data according to the Privacy Policy.

Get-MigrationUser and Get-MigrationUserStatistics: Microsoft 365 migration user reports

Cmdlet: Get-MigrationUser

Description: This cmdlet retrieves the list of users migrated from on-premises AD to Microsoft 365.

  1.  Get-MigrationUser
  2.  [-BatchId <MigrationBatchIdParameter>]
  3.  [-Status <MigrationUserStatus>]
  4.  [-StatusSummary <MigrationUserStatusSummary>]
  5.  [-DomainController <Fqdn>]
  6.  [-ResultSize <Unlimited>]
  7.  [-Partition <MailboxIdParameter>]
  8. [<CommonParameters>]

Example 1:

1 Get-MigrationUser -Identity Johndoe@example.com

This script retrieves the migration status of the recently migrated user, John Doe.

Example 2:

1 Get-MigrationUser -MailboxGuid b6a6795c-a010-4f67-aaaa-da372d56oiu7 | Get-MigrationUserStatistics

This script retrieves more detailed information about any ongoing migration for the user with the specified mailbox GUID.

Cmdlet: Get-MigrationUserStatistics

Description: Retrieves detailed information about the migration a specific user.

  1.  Get-MigrationUserStatistics
  2.  [-Identity] <MigrationUserIdParameter>
  3.  [-Diagnostic]
  4.  [-DiagnosticArgument <String>]
  5.  [-DiagnosticInfo <String>]
  6.  [-DomainController <Fqdn>]
  7.  [-IncludeReport]
  8. [-LimitSkippedItemsTo <Int32>]
  9.  [-IncludeSkippedItems]
  10.  [-Partition <MailboxIdParameter>]
  11.  [-SkipSubscription]
  12.  [<CommonParameters>]

Example 1:

1 Get-MigrationUserStatistics -Identity john@corp.example.com -IncludeReport | Format-List Status,Error,Report

This script uses the IncludeReport parameter to display detailed information about the migration status for the user.

Example 2:

1 Get-MigrationUserStatistics -Identity john@corp.example.com | Format-List SkippedItemCount,SkippedItems

This script displays the number of mailbox items that failed to migrate (skipped items), and information about them.

Example 3:

1 Get-MigrationUser -BatchId BatchSales | Get-MigrationUserStatistics

This script displays detailed information about users in the migration batch named BatchSales.

Get Microsoft 365 user migration reports with M365 Manager Plus

M365 Manager Plus offers built-in reports on Microsoft 365 that can be viewed in a single click. All the data fetched using the aforementioned scripts can be viewed in a single report.

Highlights of M365 Manager Plus:

  • Advanced filters: Use attribute and condition-based filters to get the data you need without lengthy PowerShell scripts.
  • Reports on historical data: PowerShell cmdlets can only retrieve data that's at least seven days old and no older than 180 days. But, M365 Manager Plus reports can fetch all data right from its installation.
  • Customizable dashboard: M365 Manager Plus' dashboard is customizable. Generate graphical reports get a quick peek at the mail traffic summary, top email senders and receivers, client device usage, and more. This dashboard can be embedded in any of your web pages to enable constant monitoring.
  • Report scheduler: Schedule report generation at regular intervals to reduce the overhead.
  • Report export: The reports can be exported to PDF, XLSX, HTML, or CSV formats and redistributed via emails to the administrator.
  • Secure delegation: Securely delegate report generation to technicians and IT staff without giving them full access to the Microsoft 365 Admin Center.

Why businesses choose M365 Manager Plus?

What our customers say

  • We can now effectively reconcile which licenses we are using in the organization and assign the cost to the business unit. We were also able to identify a number of license changes that could be put in place that reduced our total Microsoft 365 spending.

    Timothy Ransom
    Group IT/IS manager at The Eclipse Group, United Arab Emirates

  • M365 Manager Plus is valuable to our future business and, most importantly, it allows me to keep improving the level of service we provide.

    IT infrastructure manager
    Sunstar Suisse S.A.

  • Our firm purchased ManageEngine M365 Manager Plus to help us protect our business from email-borne cyberthreats. We are absolutely satisfied with the features and ease of use. It has surpassed our expectations.

    Insurance agent
    Security and risk management Gartner review

A holistic Microsoft 365 administration solution

One-stop solution for all your
Microsoft 365 administration needs!

Download now