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 (233k 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

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 by DA-symplr (40 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 (220 points)
0 votes
1 answer

We were used to bind to group member object using: $member = $Context.BindToObjectByDN("%member%") which worked perfectly, but now it is not. Its because %member% is returning ... ? And is it possible to get DN of added/removed member using another variable?

asked Sep 14, 2020 by KIT (570 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 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)
2,880 questions
2,600 answers
6,750 comments
114,585 users