Dec 13 2017 12:48 PM
Dec 13 2017 12:48 PM
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"
Dec 13 2017 02:54 PM
Dec 13 2017 02:54 PM
Dec 13 2017 05:55 PM
Dec 13 2017 05:55 PM
Dec 13 2017 11:49 PM
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/
Jan 10 2018 11:53 AM
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?
Jan 10 2018 11:23 PM
The code above is exactly for the scenario where users already have E3.
Jan 17 2018 03:34 AM
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 }
Jan 17 2018 07:01 AM
Jan 17 2018 07:31 AM
Simply prepare the $options variable as desired. You can toggle any/all individual service off.
Jan 17 2018 07:38 AM
Jan 17 2018 07:46 AM
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...
Aug 29 2018 01:05 AM
Aug 29 2018 06:37 AM
Jun 25 2019 01:55 AM - edited Jun 25 2019 01:56 AM
@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 }