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
##################################################################################################################################