I am looking for a script that can output all my office 365 users and then tell me which licenses they have assigned to each of them. For example something like below. It doesent have to be in that format. I have been looking but all I have seen is scripts
like this: Get-MsolUser | where-Object { $_.isLicensed -eq "TRUE" } UserPrincipalName, DisplayName, Country, Department | Export-Csv C:\testdoc.csv But all this does is show me the users that are licensed in 365.
UserName Program Licensed tjackson 365 Enterprise E3 True Visio False Project True