0 votes

Seem to be getting the below error:

Exception calling "ConnectExchangeOnline" with "0" argument(s): "There are no Microsoft 365 tenants associated with the object." Stack trace: at <ScriptBlock>, <No file>: line 1

This is the standard command I have found all over the Adaxes site, I am using Adaxes 2025.1

Trying to connect to exchange online via a scheduled task so I can run a command to add someone to a shared mailbox.

ago by (20 points)

1 Answer

0 votes
ago by (304k points)

Hello,

The error occurs because the object the script is executed on is not included into the associated scope of any Microsoft 365 tenants in Adaxes. For details on how to look up a tenant for an object, see https://www.adaxes.com/help/LookupTenantForUser. Adjusting your Microsoft 365 tenant scope should resolve the issue.

Related questions

0 votes
1 answer

I am trying to send a $context.logmessage from a condition script in a Scheduled Task but I get nothing in the log. Is this not possible? Morten A. Steien

asked Jul 20, 2020 by Morten A. Steien (300 points)
0 votes
1 answer

Hi, I have this Script to check if a condition is met # The condition is met if $Context.ConditionIsMet is set to $True. $Context.ConditionIsMet = $False $inputString = " ... or issue with this match function using in a "if script returns true" condition?

asked Oct 31, 2024 by wintec01 (2.0k points)
0 votes
0 answers

Hello The "Send mail"-Function is not working if i use the %mail%-Parameter. If i want to send an information like "Your password will expire in 7 Days" via mail but it ... if i put a specified recipient in the "To"-Field the recipient will get the message.

asked Apr 30, 2024 by Baul (130 points)
0 votes
1 answer

We have configured Adaxes to make accounts that have been Deprovisioned be disabled and hidden from GAL but they are still showing up in GAL. In Adaxes the account ... the sync is not completely working. Any suggestions on configurations will help. Thank you

asked Apr 2, 2021 by rujimg (40 points)
3,731 questions
3,409 answers
8,625 comments
550,196 users