Simple script for collecting data about your M365 licenses in friendly view. Report exports to excel file (ImportExcel module is required).
Run the script in powershell
$Credential = Get-Credential
.\Get-M365Licenses.ps1 -Credential $Credential
If you have the MFA configured, you see the authorization window.
- Credential for account with access to MSOL
- Installed module MSOnline
- Installed module ImportExcel
- Powershell version 5.1