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:
-
Launch Adaxes Administration Console.
-
Right-click your Adaxes service node, navigate to New and click Scheduled Task.
-
On step 3 of Create Scheduled Task wizard select User Object type and click Next.
-
Click Add Action.
-
Select Run a program or Powershell script.
-
Enter a short description and paste your script into the Script field.
-
Click OK and double-click Always.
-
Select If has an Exchange mailbox and click OK.
-
Right-click the condition you have created and click Add New Condition.
-
Select If PowerShell script returns true.
-
Paste the script below into the Script field.
$Context.ConditionIsMet = $Context.TargetObject.RecipientLocation -eq "ADM_EXCHANGERECIPIENTLOCATION_ONPREMISE"
-
Enter a short description and click OK.
-
Click Next and finish creating the Scheduled Task. You should have something like the following: