Home

Assign "Phone Sytem"/MCOEV only to multiple users in O365.

%3CLINGO-SUB%20id%3D%22lingo-sub-148091%22%20slang%3D%22en-US%22%3EAssign%20%22Phone%20Sytem%22%2FMCOEV%20only%20to%20multiple%20users%20in%20O365.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148091%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20have%20many%20users%20which%20have%20E5%20licenses%20assigned%20to%20them%2C%20the%20only%20service%20which%20is%20turned%20off%20in%20the%20E5%20pack%20is%20%22Phone%20System%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20want%20to%20enable%20the%20%22Phone%20System%22%20for%20all%20the%20users%20but%20it%20doesn't%20works%20using%20the%20below%20command%20set%2Fscript%2C%20I%20have%20tried%20multiple%20scripts%20available%20on%20the%20technet.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EBelow%20is%20the%20script%20which%20I%20have%20used%20to%20enable%20the%20%22Phone%20System%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%24UserPrincipalName%20%3D%20'user%40abcxyzx.com'%3CBR%20%2F%3E%24UsageLocation%20%3D%20'US'%3CBR%20%2F%3ESet-MsolUser%20-UserPrincipalName%20%24UserPrincipalName%20-UsageLocation%20%24UsageLocation%3CBR%20%2F%3ESet-MsolUserLicense%20-UserPrincipalName%20%24UserPrincipalName%20-AddLicenses%20XXXXXXX%3AENTERPRISEPREMIUM%3CBR%20%2F%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20%22XXXXXXX%3AENTERPRISEPREMIUM%22%20-DisabledPlans%20BPOS_S_TODO_3%2CFORMS_PLAN_E5%2CSTREAM_O365_E5%2CTHREAT_INTELLIGENCE%2CDeskless%2CFLOW_O365_P3%2CPOWERAPPS_O365_P3%2CTEAMS1%2CADALLOM_S_O365%2CEQUIVIO_ANALYTICS%2CLOCKBOX_ENTERPRISE%2CEXCHANGE_ANALYTICS%2CSWAY%2CATP_ENTERPRISE%2CMCOMEETADV%2CBI_AZURE_P2%2CINTUNE_O365%2CPROJECTWORKMANAGEMENT%2CRMS_S_ENTERPRISE%2CYAMMER_ENTERPRISE%2COFFICESUBSCRIPTION%2CMCOSTANDARD%2CEXCHANGE_S_ENTERPRISE%2CSHAREPOINTENTERPRISE%2CSHAREPOINTWAC%3CBR%20%2F%3ESet-MsolUserLicense%20-UserPrincipalName%20%24UserPrincipalName%20-LicenseOptions%20%24options%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20gives%20the%20below%20error%3CBR%20%2F%3ESet-MsolUserLicense%20%3A%20Unable%20to%20assign%20this%20license%20because%20it%20is%20invalid.%20Use%20the%20Get-MsolAccountSku%20cmdlet%20to%20retrieve%20a%20list%20of%20valid%20licenses.%3CBR%20%2F%3EAt%20line%3A4%20char%3A1%3CBR%20%2F%3E%2B%20Set-MsolUserLicense%20-UserPrincipalName%20%24UserPrincipalName%20-AddLicenses%20sleepingf%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20OperationStopped%3A%20(%3A)%20%5BSet-MsolUserLicense%5D%2C%20MicrosoftOnlineException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Online.Administration.Automation.InvalidUserLicenseException%2CMicrosoft.Online.Administration.Automation.SetUse%20%3CBR%20%2F%3ErLicense%3CBR%20%2F%3E%3CBR%20%2F%3ESet-MsolUserLicense%20%3A%20Unable%20to%20assign%20this%20license.%3CBR%20%2F%3EAt%20line%3A6%20char%3A1%3CBR%20%2F%3E%2B%20Set-MsolUserLicense%20-UserPrincipalName%20%24UserPrincipalName%20-LicenseOptions%20%24optio%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20OperationStopped%3A%20(%3A)%20%5BSet-MsolUserLicense%5D%2C%20MicrosoftOnlineException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Online.Administration.Automation.InvalidLicenseConfigurationException%2CMicrosoft.Online.Administration.Automati%20%3CBR%20%2F%3Eon.SetUserLicense%3CBR%20%2F%3E%3CBR%20%2F%3E%23%23The%20same%20works%20with%20other%20Service%20plans%20like%20the%20Business%20Premium%23%23%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-148091%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESkype%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-148195%22%20slang%3D%22en-US%22%3ERe%3A%20Assign%20%22Phone%20Sytem%22%2FMCOEV%20only%20to%20multiple%20users%20in%20O365.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-148195%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20example%20you%20are%20trying%20to%20use%20DISABLES%20all%20the%20other%20services.%20If%20you%20simply%20want%20to%20%22enable%22%20a%20particular%20service%20that%20is%20disabled%2C%20while%20all%20others%20are%20enabled%2C%20just%20use%20a%20%22blank%22%20%24options%20variable%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%24options%20%3D%20New-MsolLicenseOptions%20-AccountSkuId%20%22XXXXXXX%3AENTERPRISEPREMIUM%22%20%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMore%20details%20and%20examples%20in%20this%20recent%20thread%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FHow-to-enable-MT-license-under-E3-enterprise-using-powershell%2Ftd-p%2F137014%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FHow-to-enable-MT-license-under-E3-enterprise-using-powershell%2Ftd-p%2F137014%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Vasim Vebster
Occasional Visitor

Hello, I have many users which have E5 licenses assigned to them, the only service which is turned off in the E5 pack is "Phone System"


I want to enable the "Phone System" for all the users but it doesn't works using the below command set/script, I have tried multiple scripts available on the technet.

Below is the script which I have used to enable the "Phone System"

$UserPrincipalName = 'user@abcxyzx.com'
$UsageLocation = 'US'
Set-MsolUser -UserPrincipalName $UserPrincipalName -UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName $UserPrincipalName -AddLicenses XXXXXXX:ENTERPRISEPREMIUM
$options = New-MsolLicenseOptions -AccountSkuId "XXXXXXX:ENTERPRISEPREMIUM" -DisabledPlans BPOS_S_TODO_3,FORMS_PLAN_E5,STREAM_O365_E5,THREAT_INTELLIGENCE,Deskless,FLOW_O365_P3,POWERAPPS_O365_P3,TEAMS1,ADALLOM_S_O365,EQUIVIO_ANALYTICS,LOCKBOX_ENTERPRISE,EXCHANGE_ANALYTICS,SWAY,ATP_ENTERPRISE,MCOMEETADV,BI_AZURE_P2,INTUNE_O365,PROJECTWORKMANAGEMENT,RMS_S_ENTERPRISE,YAMMER_ENTERPRISE,OFFICESUBSCRIPTION,MCOSTANDARD,EXCHANGE_S_ENTERPRISE,SHAREPOINTENTERPRISE,SHAREPOINTWAC
Set-MsolUserLicense -UserPrincipalName $UserPrincipalName -LicenseOptions $options

It gives the below error
Set-MsolUserLicense : Unable to assign this license because it is invalid. Use the Get-MsolAccountSku cmdlet to retrieve a list of valid licenses.
At line:4 char:1
+ Set-MsolUserLicense -UserPrincipalName $UserPrincipalName -AddLicenses sleepingf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolUserLicense], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidUserLicenseException,Microsoft.Online.Administration.Automation.SetUse
rLicense

Set-MsolUserLicense : Unable to assign this license.
At line:6 char:1
+ Set-MsolUserLicense -UserPrincipalName $UserPrincipalName -LicenseOptions $optio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolUserLicense], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidLicenseConfigurationException,Microsoft.Online.Administration.Automati
on.SetUserLicense

##The same works with other Service plans like the Business Premium##

1 Reply
Highlighted

The example you are trying to use DISABLES all the other services. If you simply want to "enable" a particular service that is disabled, while all others are enabled, just use a "blank" $options variable:

 

$options = New-MsolLicenseOptions -AccountSkuId "XXXXXXX:ENTERPRISEPREMIUM" 

 

More details and examples in this recent thread: https://techcommunity.microsoft.com/t5/Microsoft-Teams/How-to-enable-MT-license-under-E3-enterprise-...

Related Conversations