0 votes

According to this article when we disable a user we should "Disable Exchange ActiveSync and Disable OWA for Devices, and Disable email connectivity." However I can only figure out how to disable ActiveSync with adaxes. Is there a way to Disable "OWA for Devices" and "Email connectivity" as well?

https://support.office.com/en-us/articl ... 5eddb367d1

by (340 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

To disable Exchange ActiveSync and email connectivity, you need to disable the following Exchange Features: Exchange ActiveSync and Outlook Web App.


As for OWA for Devices, currently the feature is not supported by Adaxes natively. By the time when we were developing our Exchange ADSI API that is used by Adaxes to interact with Exchange, the feature was still in development by Microsoft. Depending on various preview builds of Exchange 2013, it appeared, and then disappeared, and then appeared again, so we decided not to implement it until a final decision is made by Microsoft. Now, that things seem to have settled down, we'll add the support for it in one of the future releases.

For now, you can disable the feature with the help of a PowerShell script. You can create a Custom Command that will disable the feature by running a script or add a script to an existing Custom Command, Scheduled Task or Business Rule. To add such a script:

  1. Add the Run a program or PowerShell script action to your Business Rule, Custom Command or Scheduled Task.

  2. In the Script field, paste the following script:

     try
     {
         $objectId = [Guid]$Context.TargetObject.Get("adm-O365ObjectId")
     }
     catch
     {
         return # No office 365 account
     }
    
     $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://ps.outlook.com/powershell/" `
         -Credential $Context.GetOffice365Credential() -Authentication Basic -AllowRedirection
     Import-PSSession $Session -AllowClobber -DisableNameChecking
    
     Set-CASMailbox $objectId.ToString() -OWAforDevicesEnabled $false
    
     Remove-PSSession $session
    
  3. Add a short description for the script and click OK.

0

Works great! Thank you!

Related questions

0 votes
1 answer

Hi all I need to modify the template $remoteRoutingAddressTemplate with the default exchange option automatically update email addresses disable. How i make it?

asked Nov 28, 2022 by Simone.Vailati (430 points)
0 votes
1 answer

My scheduled task currently: Checks for staff in a particular OU that do not have an O365 license Adds a license Resets their AD Password Moves them to an OU based off ... scheduled task moves them out of the OU that the business rule is looking at. Thanks

asked Apr 15, 2020 by russmerriman (40 points)
0 votes
1 answer

We have a 3rd party vendor that we are able to add users based on AD security groups. What I need to do is set a parameter for the number of available licenses and whenever ... the group is 495 I would like an email to trigger telling me to add more licenses.

asked Oct 12, 2022 by A_Pastor (70 points)
0 votes
1 answer

Hi, I need to create a number of mail user accounts via Adaxes and a lot of these accounts have & in the displayname/email address etc (I know, I know ... failed so I can troubleshoot it better. I have tried $context.logmessage($_.Exception.Message) Thanks

asked May 9 by typod (50 points)
+1 vote
1 answer

Hi Adaxes Team I have created a business rule which sends a mail to our helpdesk staff after a user sets a new pw with the self password reset function. The user should ... . If this is not possible yet, please forward it as a suggestion :) regards pudong

asked Feb 4, 2022 by pudong (680 points)
3,547 questions
3,238 answers
8,232 comments
547,810 users