Avatar of mwjones75
mwjones75
 asked on

Need powershell script to add a O365 License

Hello,

I am trying to write a powershell script to add a O365 License to a subset of users.  I figure if I can get it to work for one I can make it work for multiple

This is as far as I get...
Set-MsolUserLicense -UserPrincipalName Mark.jones1@xxx.com -AddLicenses XXX:ENTERPRISEPACK  

I need to be able to add "Microsoft Team" and "Microsoft Planner"  

When I run Get-MsolAccountSku  I dont get the subset of XXX:Enterprisepack

Any thoughts out there?
PowershellMicrosoft 365

Avatar of undefined
Last Comment
Todd Nelson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Todd Nelson

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.
mwjones75

ASKER
thank you looking at it now
SOLUTION
ITguy565

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.
ITguy565

Like the article Todd!
mwjones75

ASKER
I got my solution
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Todd Nelson

Sufficient information provided for solution.