How can I reference a TXT or CSV file containing UserPrincipalName's and run a Get-Msoluser to export a list of those specific users licenses? The output should have UserPrincipalName and whether it has an ENTERPRISEPACK or STANDARDPACK license assigned.
Thanks for the script Elango, is there any way to get them to show the {$_.Licenses.AccountSkuId} results in one line instead of it displaying the same user multiple times in different rows?