Apr 09 2017
12:18 PM
- last edited on
Feb 07 2023
08:02 PM
by
TechCommunityAP
Apr 09 2017
12:18 PM
- last edited on
Feb 07 2023
08:02 PM
by
TechCommunityAP
Apr 09 2017 12:51 PM
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?
Apr 09 2017 01:00 PM
Apr 09 2017 01:57 PM
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.
Apr 09 2017 02:08 PM
Dvelve also had to be disabled to disable Exchange in the webportal.
"To assign a lisens that contains Customer Lockboxm you must also assign one of the following services: Exchange Online"
This was the message i got when trying to disable Exchange on a user.
Starting to think this could be a bug?
Apr 10 2017 01:49 AM
SolutionI 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 Success
So 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.servicestatus
ServicePlan ProvisioningStatus
----------- ------------------
Deskless Success
LOCKBOX_ENTERPRISE Success
EXCHANGE_ANALYTICS Success
MCOEV Disabled
MCOMEETADV Disabled
MCOSTANDARD Disabled
EXCHANGE_S_ENTERPRISE Success
SHAREPOINTENTERPRISE PendingInput
SHAREPOINTWAC PendingInput
Apr 10 2017 01:50 AM
Whoops, forgot the serviceplan I used:
$newplan = New-MsolLicenseOptions -AccountSkuId "MOD789510:ENTERPRISEPREMIUM" -DisabledPlans "MCOSTANDARD","MCOEV","MCOMEETADV"
Apr 10 2017 02:30 AM
Thanks, that did the trick.
Found that these was needed to disable Exchange:
"EXCHANGE_ANALYTICS","EXCHANGE_S_ENTERPRISE","LOCKBOX_ENTERPRISE"
Found that these was needed to disable SharePoint:
"SHAREPOINTENTERPRISE","SHAREPOINTWAC"
Apr 10 2017 01:49 AM
SolutionI 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 Success
So 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.servicestatus
ServicePlan ProvisioningStatus
----------- ------------------
Deskless Success
LOCKBOX_ENTERPRISE Success
EXCHANGE_ANALYTICS Success
MCOEV Disabled
MCOMEETADV Disabled
MCOSTANDARD Disabled
EXCHANGE_S_ENTERPRISE Success
SHAREPOINTENTERPRISE PendingInput
SHAREPOINTWAC PendingInput