Forum Discussion
Unable to assign this license
- Apr 10, 2017
I think your problem is with the other SfB related services:
[11:47:13][O365]# (Get-MsolAccountSku | ? {$_.AccountSkuId -eq "MOD789510:ENTERPRISEPREMIUM"}).ServiceStatus | ? {$_.ServicePlan.ServiceName -like "MCO*"}
ServicePlan ProvisioningStatus
----------- ------------------
MCOEV Success
MCOMEETADV Success
MCOSTANDARD SuccessSo if you only disable MCOSTANDARD, you get the error. To disable it properly, you need to disable them all:
[11:48:10][O365]# Set-MsolUserLicense -UserPrincipalName LidiaH@MOD789510.onmicrosoft.com -LicenseOptions $newplan
[11:48:14][O365]# (Get-MsolUser -UserPrincipalName LidiaH@MOD789510.onmicrosoft.com).licenses.servicestatusServicePlan ProvisioningStatus
----------- ------------------
Deskless Success
LOCKBOX_ENTERPRISE Success
EXCHANGE_ANALYTICS Success
MCOEV Disabled
MCOMEETADV Disabled
MCOSTANDARD Disabled
EXCHANGE_S_ENTERPRISE Success
SHAREPOINTENTERPRISE PendingInput
SHAREPOINTWAC PendingInput
Looks OK to me, but havent run the actual code. I suspect the LicenseOptions variable is somehow broken. What happens if you flip the SfB service for that user by just running the relevant cmdlets outside of the script?
I dont understand it myself, strange.
Could it be that its a free/trial account? Anyone else testet to run this code in a test enviroment?
Tried to run it for only one user also, same problem.