Skip to content

M365

Licenses

A good overview what licenses are available and what the contain is this website https://m365maps.com/

There are many ways to check for your current M365 License(s)

Local Office Licence

cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus

office dot com

Go to https://portal.office.com/account/?ref=MeControl to view licenses.

Microsoft.Graph

Using Azure Microsoft.Graph reveals the most details:

Install-Module Microsoft.Graph
Install-Module MSOnline
Install-Module AzureAD          

Select-MgProfile -Name "beta"
Connect-MgGraph -Scopes "User.Read.All","Group.ReadWrite.All"
Get-MgUser -All | Export-Csv -Path .\M365users.csv

# Get User specific Data
$UserID = "add your userID here"

# Licenses
Get-MgUserLicenseDetail -UserId $UserID | Select-Object ServicePlans

# Groups
foreach ($ID in (Get-MgUserMemberOf -UserId $UserID | Select Id)) { Get-AzureADGroup -ObjectId $ID.Id | Select DisplayName, Description}

# Services
Get-MgSubscribedSku -Property SkuPartNumber, ServicePlans | ForEach-Object { Write-Host "`r`nService Plan: " $_.SkuPartNumber "`r`n" $_.ServicePlans | ForEach-Object {$_}}