Avatar of Christian Hans
Christian Hans
Flag for United States of America asked on

Get-Content Import-CSV | Get-Msoluser license details

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
PowershellMicrosoft 365

Avatar of undefined
Last Comment
Qlemo

8/22/2022 - Mon
SOLUTION
Elango Sathyadev

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Christian Hans

ASKER
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?
ASKER CERTIFIED SOLUTION
Qlemo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes