How mezbauddin/m365_tenant_to_tenant_migration_toolkit works
This is a PowerShell toolkit for migrating a business between Microsoft 365 tenants. Its principal workflow runs from source inventory through destination preparation and a chosen data-copy option, then configuration rebuild, domain cutover, validation, and source decommissioning. The README also documents optional EWS archive readiness, OneDrive copy-list preparation, and device migration. Relationships below are based on the README’s workflow; source excerpts were not available, so script-level calls are not inferred.
Main entry points: Invoke-SourceTenantInventory.ps1 Source inventory · Copy-MailConfig.ps1 Mail configuration · New-TargetMailUsers.ps1 Microsoft native copy · B-ShareGate ShareGate copy
Components 27
Discover and build
- Source inventory
01-SourceInventory/Invoke-SourceTenantInventory.ps1 - Target mailboxes
02-TargetMailboxes - User mapping
02b-UserMapping/New-UserMapping.ps1 - Target OneDrives
04-TargetOneDrives/Request-TargetOneDrives.ps1
Data movement
- EWS archive readiness
03-EwsArchiveReadiness/Test-EwsArchiveReadiness.ps1 - OneDrive copy list
copy-options/New-DriveCopyList.ps1 - Microsoft native copy
copy-options/A-Microsoft-native/New-TargetMailUsers.ps1 - ShareGate copy
copy-options/B-ShareGate - Graph copy option
copy-options/C-No-budget
Rebuild configuration
- Mail configuration
05-MailConfig/Copy-MailConfig.ps1 - Groups, Teams, sites
06-GroupsTeamsSites/Copy-CollaborationMap.ps1
Cutover and devices
- Domain cutover
07-DomainCutover - Export DNS
07-DomainCutover/Export-DomainDns.ps1 - Set DNS records
07-DomainCutover/Set-DomainDnsRecords.ps1 - Cutover readiness
07-DomainCutover/Test-CutoverReadiness.ps1 - Device migration
08-Devices/Move-TenantDevices.ps1 - Device inventory
08-Devices/Get-DeviceInventory.ps1 - BitLocker key export
08-Devices/Export-BitLockerKeys.ps1 - Profile data copy
08-Devices/Copy-ProfileData.ps1
Validate and close
- Target validation
09-Validation/Test-TargetTenant.ps1 - Decommission readiness
10-Decommission/Get-DecommissionReadiness.ps1 - Remove source licences
10-Decommission/Remove-SourceLicences.ps1 - Module health check
tools/Test-ModuleHealth.ps1 - Migration report
tools/Get-MigrationReport.ps1
Other components
- Migration operator
- Source tenant
- Target tenant
Connections 28
- Migration operator → Source inventory: runs
README.md - Source inventory → Source tenant: inventories
README.md - Source inventory → Target mailboxes: informs build
README.md - Source inventory → User mapping: supports matching
README.md - Migration operator → Target OneDrives: prepares
README.md - Migration operator → EWS archive readiness: checks optionally
README.md - Migration operator → OneDrive copy list: prepares copy list
README.md - Migration operator → Microsoft native copy: chooses copy
README.md - Migration operator → ShareGate copy: chooses copy
README.md - Migration operator → Graph copy option: chooses copy
README.md - Microsoft native copy → Mail configuration: then rebuilds
README.md - ShareGate copy → Mail configuration: then rebuilds
README.md - Graph copy option → Mail configuration: then rebuilds
README.md - Migration operator → Groups, Teams, sites: rebuilds
README.md - Migration operator → Domain cutover: cuts over
README.md - Migration operator → Cutover readiness: checks go/no-go
README.md - Migration operator → Export DNS: exports DNS
README.md - Migration operator → Set DNS records: sets DNS
README.md - Migration operator → Device inventory: lists devices
README.md - Migration operator → BitLocker key export: exports keys
README.md - Migration operator → Device migration: moves devices
README.md - Device migration → Profile data copy: copies profile
README.md - Migration operator → Target validation: validates target
README.md - Migration operator → Decommission readiness: checks readiness
README.md - Decommission readiness → Remove source licences: precedes removal
README.md - Migration operator → Remove source licences: removes licences
README.md - Migration operator → Module health check: checks modules
README.md - Migration operator → Migration report: reviews reports
README.md