Forum Discussion

ak-lespay's avatar
ak-lespay
Copper Contributor
May 16, 2023

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-lespay's avatar
    ak-lespay
    Copper Contributor
    Found out that property PrepaidUnits.Enabled show reseller licenses. PrepaidUnits.Warning shows the remaining licenses.

Resources