Get license usage in Office 365 with PowerShell

Hello

You have different means for measure your license usage in Office 365.Built-in in Microsoft Online module :

Get-MsolSubscription :

LicenseUsage-MsolSubscription

Get-MsolAccountSku :

LicenseUsage-MsolAccountSKU

 Get-MsolUser :

LicenseUsage-UserByUser

Get-MsolUser -All | select UserPrincipalName,Licenses | % {New-Object -TypeName PSObject -Property @{UPN = $_.UserPrincipalName;Licenses = $_.Licenses.AccountSkuId}}

You can also export the result :

Get-MsolUser -All | select UserPrincipalName,Licenses | % {New-Object -TypeName PSObject -Property @{UPN = $_.UserPrincipalName;Licenses = $_.Licenses.AccountSkuId}} | Export-Csv -NoTypeInformation -Delimiter ';' -Path c:tempmsol.csv

 

Leave a Reply