Link to home
Start Free TrialLog in
Avatar of Christian Hans
Christian HansFlag 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
SOLUTION
Avatar of Elango Sathyadev
Elango Sathyadev
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial