OPS / SCRIPT DETAILS
Script details
Builds a local multi-sheet XLSX migration assessment workbook that correlates Entra ID, licensing, Exchange Online, Microsoft Teams, SharePoint Online and OneDrive inventory while preserving partial workload failures. Review these details before generating or running the script.
microsoft-365migrationassessmentexcelworkbookentraexchangeteams
What it works with
Module: Microsoft.Graph.Authentication · Microsoft.Graph.Users · Microsoft.Graph.Groups · Microsoft.Graph.Identity.DirectoryManagement · ExchangeOnlineManagement · MicrosoftTeams · PnP.PowerShell · ImportExcel
Context: PowerShell 7.6+ · Microsoft 365 multi-workload · local XLSX output
Compatibility: PowerShell 7.6+ satisfies current ExchangeOnlineManagement 3.10.x and current PnP.PowerShell requirements in one session.
Permissions and impact
Permissions: User.Read.All · Group.Read.All · Domain.Read.All · LicenseAssignment.Read.All · Read-only Exchange recipient/mailbox visibility · Teams read visibility / supported administrator role · AllSites.Read + SharePoint Administrator
Risk: Low
Execution impact: Read-only. Reads administrative data and does not intentionally change the target environment.
Parameters
- SharePoint admin URL - SharePoint tenant administration URL, for example https://contoso-admin.sharepoint.com. (Required)
- PnP Entra app client ID - Your PnP app client ID. Leave empty only when a PnP default client ID is configured. (Optional)
- Optional destination domain - Optional target SMTP/UPN domain used only to propose MappingCandidates. Leave empty to suppress destination suggestions. (Optional)
- XLSX workbook path - Use a new absolute Windows .xlsx path. The workbook can contain sensitive organizational inventory and must be protected appropriately. (Required)
Output
Output: XLSX workbook with Summary, Users, Guests, Licenses, Groups, Domains, Mailboxes, Aliases, Teams, TeamOwners, Channels, SharePointSites, OneDrive, MappingCandidates, MigrationRisks, Warnings and Errors sheets.
This template is part of the Pro library. The full Pro script is generated by Opselith after server-side license validation; only the configuration values needed by this template are sent for generation. No tenant connection is required. When you generate a Pro script, only the configuration values needed for that template are sent to Opselith after license validation.
Example use
Builds a local multi-sheet XLSX migration assessment workbook that correlates Entra ID, licensing, Exchange Online, Microsoft Teams, SharePoint Online and OneDrive inventory while preserving partial workload failures.
Enter the required values in the Builder, review the generated script and confirm the output before running it.