Introduction
Migrating an organization from Google Workspace to Microsoft 365 often represents a complex challenge for IT professionals. Essential steps such as email migration, file copying, DNS record updates, and DKIM configuration can become unforeseen obstacles, especially when lacking structured tools.
This is where the M365 Migration Toolkit, an open-source project available under the MIT license, comes in to simplify these operations. Available on the GitHub repository (github.com/HoussemMak/m365-migration-toolkit), it proposes a standardized method that relies on Microsoft's free tools while leveraging a single configuration.
Good to know
The M365 Migration Toolkit enables migration of emails and files while reducing risks through automated scripts adapted to the needs of professional migrations.
Advantages of the toolkit versus manual solution
Migrating without dedicated tooling generally leads to numerous challenges:
- Manual management of configurations.
- Errors related to service account keys or poorly defined OAuth permissions.
- Increased risks of DNS-related issues, particularly with DKIM.
The M365 Migration Toolkit proposes a streamlined approach by leveraging a single configuration file and a few CSV files per client. Here are its main benefits:
- Automation of key steps: SharePoint URL generation, MX and DKIM record configuration, and more.
- Reduction of repetitive tasks through ordered scripts.
- Comprehensive documentation via a playbook that covers common pitfalls and their solutions.
Conversely, adopting a manual method can quickly become time-consuming, especially for administrators managing multiple migration projects. The tool thus helps standardize and accelerate workflows while minimizing critical errors.
A three-step process
The toolkit's operation revolves around three main phases:
Configuration preparation
Begin by filling out a single configuration file accompanied by CSV files containing necessary client data (mailboxes, files, etc.).
Sequential script execution
Scripts numbered 00 to 10 cover all fundamental steps, from initial audit to effective migration. Here is an example of a command used in the migration:
1Invoke-M365Migration -ConfigFile "config.json" -ClientData "clients.csv"DNS cutover
Finalize the process by updating DNS records, particularly MX, SPF, and DKIM records, to redirect email traffic to Microsoft 365.
The sequential numbering of scripts ensures logical execution of steps, from audit to DNS cutover, prioritizing discipline and security.
Technologies used
The toolkit relies on several technological components:
- PowerShell 7: multi-platform automation engine.
- PnP PowerShell: module for interacting with SharePoint.
- GAM: Google Workspace administration tool.
- Exchange Online: enables email migration.
- SharePoint Online: file destination.
Microsoft provides these tools for free to facilitate the migration process, which the toolkit orchestrates coherently with its specific scripts for each step.
Conclusion
The M365 Migration Toolkit transforms the migration from Google Workspace to Microsoft 365 into a structured, efficient, and especially repeatable process. Thanks to its automation, comprehensive documentation, and adaptability, it directly addresses the needs of system administrators and IT service providers. By reducing the common pitfalls of manual migrations, this tool guarantees significant time savings and greater reliability of operations.
Before any production deployment, it is recommended to test the toolkit in a pilot environment.
Tip
For large migrations (over 400 GB), perform thorough initial data audits and prepare backups before launching the scripts.



