Why use this template?
Use this free PowerShell script when you need to export subscribed product skus and consumed units. It is generated locally and can be reviewed before you run it yourself in your own PowerShell session.
The template uses Microsoft.Graph.Identity.DirectoryManagement and requires Organization.Read.All. Output: CSV report. Level: Intermediate. Action: Read-only. Risk: Low.
Review before running
The script is generated in your browser. Read it before you run it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
Generate the script
- Open the template in the PowerShell Builder.
- Enter the requested values and review the module, permissions, output and risk.
- Generate the script, read it carefully, and test it outside production before use.
The script is generated locally in your browser. Nothing needs to be uploaded to Opselith.
Generate Export tenant license SKUs →How to use this result
Use this report to capture subscribed SKU identifiers and current consumed/prepaid unit counts for tenant licensing review.
When this helps
- Create a tenant license-capacity snapshot before a licensing or migration review.
- Compare consumed units with enabled, suspended and warning prepaid-unit values by SKU.
How to read the result
- ConsumedUnits is the number currently consumed for the SKU; EnabledUnits comes from the prepaid-unit state exposed by Microsoft Graph.
- This is a tenant subscription-capacity report, not a per-user assignment report or billing invoice.
Things to check
- SKU part numbers are technical identifiers and may need to be mapped to current product names for business reporting.
- Capacity figures alone do not show which users hold licenses or whether those assignments are appropriate.
What to do next: Use the SKU snapshot together with licensed-user exports and your commercial records before changing license purchases or assignments.
Related tasks
Official references