Hi all,

We have an error in our 365 licenses that wont let the ECAL_SERVICES license pack be activated with our ENTERPRISEPACK. The error occurs in adaxes and in the 365 admin centre when you try to enable them together.

I have been instructed to enable them so am doing so but it is causing extra overhead on myself now having to set them manually and disable the EXCHANGE_S_ARCHIVE which is causing the conflict with the ENTERPRISEPACK.

I wrote a script to enable the ECAL_SERVICES pack using New-MsolLicenseOptions cmdlet and the -DisabledPlans EXCHANGE_S_ARCHIVE switch however this does not work in adaxes. Presumably because it can't use the exchange online module? Is there a way in Adaxes where I could get this working. Below is my script so you can see what Im trying to do.

Id like to be able to use this as part of user creation or as a custom command to execute on %username% for instance.

Thanks for all your help

##############################################################################################################################

$exchangeAdminName = "a_user@somedomain.com" # TODO: modify me
$exchangeAdminPassword = "Password" # TODO: modify me

$Credential = New-Object -type System.Management.Automation.PSCredential `
-argumentlist $exchangeAdminName,(ConvertTo-SecureString -AsPlainText $exchangeAdminPassword -Force)

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection
Import-PSSession $session -AllowClobber

$EcalLicense = New-MsolLicenseOptions -AccountSkuId "somedomain:ECAL_SERVICES" -DisabledPlans EXCHANGE_S_ARCHIVE
Set-MsolUserLicense -UserPrincipalName a_user@somedomain.com -AddLicenses "somedomain:ECAL_SERVICES" -LicenseOptions $EcalLicense

Remove-PSSession $Session

##################################################################################################################################

by (350 points)

1 Answer

by (309k points)
Best answer
0 votes

Hello,

When registering a tenant, you can specify services provided by each plan to avoid conflicts. For information on how to do so, have a look at the following tutorial: http://www.adaxes.com/tutorials_ActiveD ... htm#tenant. Defining services of a plan is described on step 5 of the guide.

Related questions

Hi, when I enable a license for Exchange Online for a user I get the following warning: Here are the current settings for creating a remote ... : InvalidOperation: (:) [], RuntimeException     + FullyQualifiedErrorId : PropertyAssignmentException

asked Nov 18, 2025 by Allister (90 points)
0 votes
1 answer

No edit button is available within Adaxes for these accounts. The service account has 'Mail Recipients' and 'MailRecipientCreation' permissions assigned. What additional configuration or permissions might be needed?

asked May 29 by HappyOtter6153 (20 points)
0 votes
1 answer

We are using Adaxes Directory Object Picker for selecting Distribution Group members. We create external recipients as Exchange Online MailContacts (via New-MailContact). These contacts: are ... Context: We are using cloud-only contacts (no on-prem AD sync).

asked May 27 by IwistIT (140 points)
0 votes
1 answer

I need to connect to Exchange Online using specific service principal, but I am getting error I am trying to authenticate via Connect-ExchangeOnline -AccessToken $token - ... btw aka 3.8.0 version of the ExchangeOnlineManagement module is used automatically.

asked Nov 18, 2025 by KIT (1.1k points)
0 votes
1 answer

Hello, We've previously had assistance in implementing a method to transfer email addresses to a specified user via a powershell script for our on-prem Exchange. This has ... $user.SetInfo() Please let me know if you require more clarification. Regards, Josh

asked Aug 25, 2025 by jtop (720 points)
0 votes
1 answer