Scripts · PowerShell

Export-M365CopilotReports

Export Entra users, Purview Copilot audit events, all audit interactions, or Microsoft 365 Copilot usage reports.

View on GitHub

What it is

An interactive PowerShell exporter for Entra user details, Purview audit data, and Microsoft 365 Copilot usage datasets used by analytics reports.

Why use it

  • Prepare organizational data for Viva Insights or Power BI.
  • Export Copilot-specific or broader Purview audit events from one menu.
  • Collect Microsoft 365 Copilot usage reporting data without separate scripts.

How to use it

Install the Microsoft Graph prerequisites documented by the script, open PowerShell in this folder, and run ./Export-M365CopilotReports.ps1. Choose the desired export from the interactive menu and complete authentication.

Prerequisites

  • Microsoft Graph access
  • Permissions required by the selected report