Sign up for Office 365
Learn more about Office 365
When instructing an Office 365 class, I was asked a question about granular license assignment from PowerShell. The ask was with regards to the options we have in the UI for licensing users. For instance, from the Microsoft Online Portal we can assign an E3 class license, which we can then further filter to limit the services within the license. We can assign the E3 license but remove the Exchange Online option for the user. Alternatively, we can remove the Office subscription access for the user and so on.
Many customers like to script the licensing/provisioning of users so we were asked if there is a process for this same granular management in PowerShell. The answer is below, there was a combination of people that found the correct cmdlets to accomplish this task.
First, enumerate the licence plans and create your own licence:
Secondly you need to assign the licence to the user(s):
For reference, the SkuPartNumber's that we discovered are:
Inside ENTERPRISEPACK Sku:
Inside DESKLESSWOFFPACK Sku:
Inside EXCHANGEARCHIVE Sku
This content was created by Brian Reid (C7Solutions), Donte Henry (Avanade), and Timothy Heeney (Microsoft), during the MCM Office 365 training class
Very useful information.
I'm trying to create dynamic distribution groups based on which plan a user is subscribed too (E1, E3 etc). While I can use the get-msoluser and cmdlet and display the License type in a table, it won't let me query against -License as a parameter. I've tried using $_.Licenses as an object in a cmdlet, and could only do a -ne value, but couldn't determine what are valid values for this object so I could do an -eq evaluation. Any thoughts on trying to get a list of users that have a specific license type? Thanks.