enabel license options office365

Dear people,

I have 2 questions.

first one.

Is it possible to enable a license plan options in office 365 for all users through powershell.
I need to enable Microsoft planner for all users in a tenant.

Second question.
Is it possible through powershell to add Office 365 licenses to mutliple users, like the following situation.

i create a new tenant like new-domain-nl@onmicrosoft.com, and i have 250 users.
and then 125 users must have Enterprise e3 licenses
and the other 125 must have enterprise e1.

Is that possible to create a script or something

You can find answers to your first question with a simple web search: https://technet.microsoft.com/en-us/library/dn771770.aspx. The short answer is yes.

The second question is really a ‘it depends’. If you have context that can be used to determine who would get a license, then you could certainly assign licenses dynamically based on title, department or if their first name is Henry. As long as you have criteria that can be logically defined, then you can script it.