An Engineers Notebook

How to find the type of licence assigned to each Office 365 user

This command exports a list of all licensed users and the type of licence that is assigned to those users.
First run:
Connect-MsolService

then..
Get-MsolUser -All |Where {$_.IsLicensed -eq $true } |Select DisplayName,UsageLocation,@{n="Licenses Type";e={$_.Licenses.AccountSKUid}},SignInName,UserPrincipalName,@{n="ProxyAddresses";e={$_.ProxyAddresses}}| Export-csv -Path C:ExportlicenseUsage.csv -notype

Leave a Reply

Your email address will not be published.