0 votes

Hello,

I couldn't get my head arround on making a condition "when mailbox is on Premise" to migrate it to the cloud.
Looking at account details Adaxes shows either a mailbox database or "Office 365" in mailbox location field. Can I query that somehow? Powershell?

by (760 points)

1 Answer

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

Hello,

This can be done using two conditions: If has an Exchange mailbox and If PowerShell script returns true. For example, you can create a Scheduled task like the following:

  1. Launch Adaxes Administration Console.

  2. Right-click your Adaxes service node, navigate to New and click Scheduled Task.

  3. On step 3 of Create Scheduled Task wizard select User Object type and click Next.

  4. Click Add Action.

  5. Select Run a program or Powershell script.

  6. Enter a short description and paste your script into the Script field.

  7. Click OK and double-click Always.

  8. Select If has an Exchange mailbox and click OK.

  9. Right-click the condition you have created and click Add New Condition.

  10. Select If PowerShell script returns true.

  11. Paste the script below into the Script field.

     $Context.ConditionIsMet = $Context.TargetObject.RecipientLocation -eq "ADM_EXCHANGERECIPIENTLOCATION_ONPREMISE"
  12. Enter a short description and click OK.

  13. Click Next and finish creating the Scheduled Task. You should have something like the following:

Related questions

0 votes
1 answer

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365? Adaxes version 2017.2 3.8.14823.0 Also is this something that is already part of 2018.1?

asked Mar 12, 2019 by mytamhuyet (50 points)
0 votes
1 answer

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365? Adaxes version 2017.2 3.8.14823.0 Also is this something that is already part of 2018.1?

asked Jan 16, 2019 by hgletifer (1.3k points)
0 votes
1 answer

We use TOPdesk as our ITSM solution. Several departments are able to create new users. When a create user task fails we would like to receive the alert as the Adaxes ... Adaxes to sent out the incident to our TOPdesk. Is there a solution for this?

asked Oct 5, 2023 by mrkvd16 (50 points)
0 votes
1 answer

I have 18 domains managed by Adaxes and have noticed that Admin (full access) t all objects acts normally, but for piecemeal scopes like Service Desk that scopes to individual ... role (including 16 denies) and expect it to grow as we add more domains.

asked Sep 20, 2022 by DA-symplr (100 points)
0 votes
1 answer

I would like users to use Adaxes to add themselves or others to a group, but instead of it just working, it has to go thru an approval process and be approved by the group owner before they are added. Thanks!

asked Jun 30, 2021 by RayBilyk (240 points)
3,552 questions
3,242 answers
8,243 comments
547,828 users