We help IT Professionals succeed at work.

We basically need to run a powershell script against a group that turns that exchange license on under the E5 once the person is migrated to Office 365.

High Priority
55 Views
Last Modified: 2020-02-24
We have all users enabled with the E5 but have the exchange license off.  We basically need to run a script against a group that turns that exchange license on under the E5 once the person is migrated to Office 365.  can someone provide a way to do this in Powershell with Office 365?
Comment
Watch Question

Adam BrownSenior Systems Admin
CERTIFIED EXPERT
Top Expert 2010

Commented:

Easy way to handle this would be to create a License assignment policy in Azure AD. Set it up with a new group and add users to the group as they are migrated. Assign the E5 license fully to members of that group with the policy. Voila. 

Michael LeonardSolution Architect

Author

Commented:
actually let me provide some additional info on this,

We already have a script that runs for new employees which licenses say 15 of the 20 options under the E5.  Exchange is not one of those options.

Once migrated to exchange, we wouldn’t want to license the E5 fully, we would just want to add exchange under the e5 so do I set up a license group with just exchange under the e5 and it adds it or do I need to set it for the existing 15 options, plus now exchange making it 16 of the 20.
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2019

Commented:
Here's the script I usually recommend for such scenarios: https://gallery.technet.microsoft.com/scriptcenter/Change-Office-365-licenses-e3a26eb0
Michael LeonardSolution Architect

Author

Commented:
hi Vasil, can this be used to "enable" just the "exchange" option in the E5 license feature set?
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2019
Commented:
Yes, that's exactly what it's used for. But I see now that the corresponding blog article/description is no longer available, so here's my version of it: https://www.michev.info/Blog/Post/2224/disable-specific-services-via-the-azure-ad-powershell-module
Michael LeonardSolution Architect

Author

Commented:
that's great just what i was looking for.  Thanks Vasil!