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

Copper Contributor

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 = ''
$UsageLocation = 'US'
Set-MsolUser -UserPrincipalName $UserPrincipalName -UsageLocation $UsageLocation
Set-MsolUserLicense -UserPrincipalName $UserPrincipalName -AddLicenses XXXXXXX:ENTERPRISEPREMIUM
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

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

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

1 Reply

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: