Forum Discussion
ak-lespay
May 16, 2023Copper Contributor
Getting available M365 licenses not showing right number
I need to collect available M365 licenses from my tenant, but Get-MgSubscribedSku is not returning the right number. It seems it is returning only data from commercial direct licenses and not any information about licenses purchased through resellers. Also, the commercial direct licenses have expired. I need a total view of all available licenses.
Does anyone know how to do this?
- Found out that property PrepaidUnits.Enabled show reseller licenses. PrepaidUnits.Warning shows the remaining licenses.
- ak-lespayCopper ContributorFound out that property PrepaidUnits.Enabled show reseller licenses. PrepaidUnits.Warning shows the remaining licenses.