Home

How to enable MT license under E3 enterprise using powershell?

%3CLINGO-SUB%20id%3D%22lingo-sub-137014%22%20slang%3D%22en-US%22%3EHow%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137014%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20anyone%20have%20power-shell%20to%20enable%20Microsoft%20team%20license%20under%20E3%20enterprise%20license%20for%20all%20users%20who%20has%20E3%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20of%20now%20MT%20is%20enabled%20however%2C%20under%20E3%20it%20is%20not%20enabled%20for%20all%20users%3F%20Not%20sure%20why%20intermittently%20enabled%20for%20some%20users.%20if%20there%20is%20any%20power%20shell%20to%20enable%20Microsoft%20teams%20license%20who%20has%20E3%20license%20please%20share%20it%20here.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20command%20to%20disable%20it%20but%20not%20able%20to%20enable%20it.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24X%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20%24acctSKU%20-DisabledPlans%20%22team%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-137014%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239463%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239463%22%20slang%3D%22en-US%22%3Eyou%20enable%20two%20factor%20recently%3F%20Last%20I%20used%20it%20many%20moons%20ago%20it%20didn't%20support%20it%2C%20had%20to%20temporarily%20disable%20to%20do%20what%20I%20needed%20then%20turn%20back%20on.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239345%22%20slang%3D%22en-US%22%3ERE%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239345%22%20slang%3D%22en-US%22%3EHi%20Christopher%20I'm%20having%20issues%20with%20GingerEX.%20Error%20-%20authentication%20error%20unexpected%20authentication%20failure%20Its%20the%20first%20time%20coming%20across%20this%20error%2C%20any%20ideas%20why%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145950%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145950%22%20slang%3D%22en-US%22%3E%3CP%3EDepends.%20If%20you%20want%20them%20all%20to%20end%20up%20with%20the%20exact%20same%20set%20of%20services%20enabled%2C%20then%20you%20need%20it%20only%20once.%20If%20you%20want%20to%20make%20changes%20to%20some%20services%20status%2C%20while%20keeping%20the%20others%2C%20you%20might%20need%202%20runs.%20In%20general%2C%20I'd%20recommend%20looking%20at%20this%20script%20that%20handles%20things%20even%20when%20switching%20between%20licenses%3A%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fcloudpfe%2F2014%2F01%2F30%2Fhow-to-change-office-365-licenses-in-bulk-respecting-the-license-options%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fcloudpfe%2F2014%2F01%2F30%2Fhow-to-change-office-365-licenses-in-bulk-respecting-the-license-options%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145944%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145944%22%20slang%3D%22en-US%22%3EI%20can%20see%20how%20that%20would%20work%20if%20all%20the%20users%20you%20are%20running%20against%20have%20the%20same%20services%20before.%3CBR%20%2F%3EWhat%20about%20where%20you%20have%2010%20users%3A%3CBR%20%2F%3E%3CBR%20%2F%3E5%20of%20them%20have%20E3%20but%20without%20Flow%20and%20Teams%3CBR%20%2F%3E5%20of%20them%20have%20E3%20but%20without%20PowerApps%20and%20Teams%3CBR%20%2F%3E%3CBR%20%2F%3EI%20want%20to%20enable%20Teams%20for%20all%20of%20them.%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20I%20have%20to%20run%20the%20command%20twice%20-%20once%20for%20the%20first%205%20users%20with%20-DisabledPlans%20%22Flow%22%2C%20then%20again%20for%20the%202nd%205%20users%20with%20-DisabledPlans%20%22PowerApps%22%20%3F%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145938%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145938%22%20slang%3D%22en-US%22%3E%3CP%3ESimply%20prepare%20the%20%24options%20variable%20as%20desired.%20You%20can%20toggle%20any%2Fall%20individual%20service%20off.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145927%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145927%22%20slang%3D%22en-US%22%3EWhat%20about%20the%20scenario%20where%20you%20want%20to%20enable%201%20service%20-%20not%20all%20disabled%20services%3F%3CBR%20%2F%3E%3CBR%20%2F%3Ee.g.%20want%20to%20enable%20Teams%2C%20but%20not%20Flow.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145864%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145864%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20to%20add%2C%20if%20you%20want%20to%20run%20the%20above%20against%20all%20users%20that%20have%20E3%20applied%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20'tenant%3AENTERPRISEPACK'%0A%0AGet-MsolUser%20-All%20%7C%20%3F%20%7B%24_.Licenses.AccountSkuId%20-eq%20%22tenant%3AENTERPRISEPACK%22%7D%20%7C%20%25%20%7B%20Set-MsolUserLicense%20-UserPrincipalName%20%24_.UserPrincipalName%20-LicenseOptions%20%24options%20%7D%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-143805%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-143805%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20code%20above%20is%20exactly%20for%20the%20scenario%20where%20users%20already%20have%20E3.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-143610%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-143610%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Vasil%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20Already%20enabled%20E3%20license%20to%20all%20the%20users.%20Is%20that%20okay%20to%20enable%20E3%20license%20again%20to%20all%20these%20users%3F%20Is%20there%20any%20way%20that%20we%20can%20enable%20only%20MT%20under%20E3%20license%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137137%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137137%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20no%20separate%20switch%20for%20%22enable%22.%20If%20you%20want%20to%20%22enable%22%20a%20service%2C%20for%20example%2C%20if%20you%20have%20Teams%20disabled%20and%20you%20want%20to%20enable%20it%2C%20without%20disabling%20any%20other%20services%2C%20you%20simply%20run%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20'tenant%3AENTERPRISEPACK'%0A%0ASet-MsolUserLicense%20-UserPrincipalName%20user%40domain.com%20-LicenseOptions%20%24options%0A%3C%2FPRE%3E%0A%3CP%3EThis%20will%20set%20all%20services%20to%20enabled.%20You%20don't%20need%20to%20use%20the%20-AddLicense%20parameter.%20I've%20more%20detailed%20article%20on%20this%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.michev.info%2FBlog%2FPost%2F1120%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.michev.info%2FBlog%2FPost%2F1120%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137082%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137082%22%20slang%3D%22en-US%22%3EThanks%20for%20the%20suggestion%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137048%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137048%22%20slang%3D%22en-US%22%3EI%20use%20GingerEX%20they%20have%20a%20free%20trial%2C%20but%20it's%20a%20good%20tool%20for%20doing%20bulk%20license%20edits%20and%20others.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-719241%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20MT%20license%20under%20E3%20enterprise%20using%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-719241%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%20i%20could%20not%20thank%20you%20enough%20for%20this%20simple%20and%20effective%20code.%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EJust%20to%20add%2C%20if%20you%20want%20to%20run%20the%20above%20against%20all%20users%20that%20have%20E3%20applied%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20'tenant%3AENTERPRISEPACK'%0A%0AGet-MsolUser%20-All%20%7C%20%3F%20%7B%24_.Licenses.AccountSkuId%20-eq%20%22tenant%3AENTERPRISEPACK%22%7D%20%7C%20%25%20%7B%20Set-MsolUserLicense%20-UserPrincipalName%20%24_.UserPrincipalName%20-LicenseOptions%20%24options%20%7D%3C%2FPRE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3E%26nbsp%3B%20thank%20you%20so%20much%20Vasil%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EJust%20to%20add%2C%20if%20you%20want%20to%20run%20the%20above%20against%20all%20users%20that%20have%20E3%20applied%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20'tenant%3AENTERPRISEPACK'%0A%0AGet-MsolUser%20-All%20%7C%20%3F%20%7B%24_.Licenses.AccountSkuId%20-eq%20%22tenant%3AENTERPRISEPACK%22%7D%20%7C%20%25%20%7B%20Set-MsolUserLicense%20-UserPrincipalName%20%24_.UserPrincipalName%20-LicenseOptions%20%24options%20%7D%3C%2FPRE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Do anyone have power-shell to enable Microsoft team license under E3 enterprise license for all users who has E3? 

 

As of now MT is enabled however, under E3 it is not enabled for all users? Not sure why intermittently enabled for some users. if there is any power shell to enable Microsoft teams license who has E3 license please share it here. 

I have command to disable it but not able to enable it. 

$X = New-MsolLicenseOptions -AccountSkuId $acctSKU -DisabledPlans "team"

13 Replies
I use GingerEX they have a free trial, but it's a good tool for doing bulk license edits and others.
Thanks for the suggestion

There is no separate switch for "enable". If you want to "enable" a service, for example, if you have Teams disabled and you want to enable it, without disabling any other services, you simply run

 

$options = New-MsolLicenseOptions -AccountSkuId 'tenant:ENTERPRISEPACK'

Set-MsolUserLicense -UserPrincipalName user@domain.com -LicenseOptions $options

This will set all services to enabled. You don't need to use the -AddLicense parameter. I've more detailed article on this here: https://www.michev.info/Blog/Post/1120/

 

Hi Vasil,

 

We Already enabled E3 license to all the users. Is that okay to enable E3 license again to all these users? Is there any way that we can enable only MT under E3 license? 

The code above is exactly for the scenario where users already have E3.

Just to add, if you want to run the above against all users that have E3 applied:

 

$options = New-MsolLicenseOptions -AccountSkuId 'tenant:ENTERPRISEPACK'

Get-MsolUser -All | ? {$_.Licenses.AccountSkuId -eq "tenant:ENTERPRISEPACK"} | % { Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $options }
What about the scenario where you want to enable 1 service - not all disabled services?

e.g. want to enable Teams, but not Flow.

Simply prepare the $options variable as desired. You can toggle any/all individual service off.

Highlighted
I can see how that would work if all the users you are running against have the same services before.
What about where you have 10 users:

5 of them have E3 but without Flow and Teams
5 of them have E3 but without PowerApps and Teams

I want to enable Teams for all of them.

Do I have to run the command twice - once for the first 5 users with -DisabledPlans "Flow", then again for the 2nd 5 users with -DisabledPlans "PowerApps" ??

Depends. If you want them all to end up with the exact same set of services enabled, then you need it only once. If you want to make changes to some services status, while keeping the others, you might need 2 runs. In general, I'd recommend looking at this script that handles things even when switching between licenses: https://blogs.technet.microsoft.com/cloudpfe/2014/01/30/how-to-change-office-365-licenses-in-bulk-re...

Hi Christopher I'm having issues with GingerEX. Error - authentication error unexpected authentication failure Its the first time coming across this error, any ideas why?
you enable two factor recently? Last I used it many moons ago it didn't support it, had to temporarily disable to do what I needed then turn back on.

@Vasil Michev  i could not thank you enough for this simple and effective code.


@Vasil Michev wrote:

Just to add, if you want to run the above against all users that have E3 applied:

 

$options = New-MsolLicenseOptions -AccountSkuId 'tenant:ENTERPRISEPACK'

Get-MsolUser -All | ? {$_.Licenses.AccountSkuId -eq "tenant:ENTERPRISEPACK"} | % { Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $options }


  thank you so much Vasil


@Vasil Michev wrote:

Just to add, if you want to run the above against all users that have E3 applied:

 

$options = New-MsolLicenseOptions -AccountSkuId 'tenant:ENTERPRISEPACK'

Get-MsolUser -All | ? {$_.Licenses.AccountSkuId -eq "tenant:ENTERPRISEPACK"} | % { Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $options }

 

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies