0 votes

Hi

We have Exchange set up in hybrid mode and are currently using scripts to create the remote mailbox. We're looking to enable Adaxes to do this (from here) but before we do I just wanted to check that rooms and shared mailboxes will be correctly identified and created as such, or if there's anything special we need to do in order to get this to work?

Thanks

Matt

by (1.2k points)

1 Answer

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

Hello Matt,

The main point is that there is no possibility to directly create shared or room mailboxes in Exchange Online. You can only first create a regular mailbox and then convert it to the necessary type. The other approach is to use a script to enable a remote mailbox of the required type in Exchange on-premises and then wait for the synchronization to be completed. The article you referenced shows how to configure automatic enabling and disabling remote mailboxes when a Microsoft 365 license with access to Exchange Online is assigned. As such, the automation will not work for the second approach. As of now, using a script to directly enable a remote mailbox and wait for the synchronization is the easiest approach. In the script, you can use method $Context.EnableRemoteMailboxEx2. For details about the method, see https://adaxes.com/sdk/IAdmExchangeRemoteMailboxOps3.

0

Thanks for the reply. I'll take a look at the EnableRemoteMailbox funtion :)

0

Hi

I've tried the following $Context.EnableRemoteMailboxEx2($remoteRoutingAddress,$mailNickName,$False,$False,$False,$False,$NULL,$emailAddress)

But I get the following error

Method invocation failed because [Softerra.Adaxes.Adsi.Scripting.ExecuteScriptContext] does not contain a method named 'EnableRemoteMailboxEx2'. Stack trace: at <ScriptBlock>, <No file>: line 58

We're running Adaxes 3.14.19312.0 which from what I can see is the latest version, am I missing something or does this need to be done differently?

Thanks

Matt

+1

Hello Matt,

The thing is that the method is not supported by the $Context variable itself. You need to call the methd for a user. For example, to execute the method for the target user the script should look like the following:

$Context.TargetObject.EnableRemoteMailboxEx2($remoteRoutingAddress,$mailNickName,$False,$False,$False,$False,$NULL,$emailAddress)

0

Thank you, that's worked.

One last related question if I can please, is it possible to use one of your methods under $context.targetobject to set the email address policy and add an additional email address to a remote mailbox? I can see this can be done on a full mailbox (https://adaxes.com/sdk/SampleScripts.ModifyingMailboxProperties.EMailAddresses/) but this doesn't seem to be working for me on a remote mailbox using the script example on that page.

0

Hello,

Unfortunately, it is not possible to enable a remote mailbox and set Exchange properties for it in the same script. It has to first be enabled, then synchronized to Exchange Online and only then you can perform the updates. The updates themselves can be performed in a scheduled task with the help of the Modify Exchange properties action. For details about it, have a look at the following tutorial: https://www.adaxes.com/tutorials_AutomatingDailyTasks_AutomateExchangeMailboxConfiguration.htm.

Related questions

0 votes
1 answer

We recently migrated some accounts to a new Forest that is part of the same Tenant. After migration of Shared mailboxes I get GUIDs for delegates. The image shows 3 ... migration as expected. So far the GUID doesn't appear to match the migrated account.

asked Jul 6, 2021 by ComputerHabit (790 points)
0 votes
1 answer

Hi All, I have an OU ADSynced to Office 365 When I create Shared Mailboxes I basically create the user account sync it to 365 Assign it a license and and set ... only process the below actions if the previous one returned an Operation status of "Completed"

asked Oct 26, 2020 by casey101 (20 points)
0 votes
1 answer

Hi, I'm very new to Adaxes and still getting to grips with it. Is there any way to search or filter within the web interface, users that have an Exchange Online shared mailbox? Thanks

asked Oct 14, 2020 by sysg89 (20 points)
0 votes
0 answers

Hey Guys We have some issues with new meeting rooms that we have created. Previously we used to have on-premise exchange but switched to office365. Before doing ... OU but the interface are different. under exchange properties they are different aswell.

asked Sep 18, 2019 by seanr (70 points)
0 votes
1 answer

The built in functionality to convert exchange online mailboxes to shared does not work for users that are synced from our local AD via Azure AD connect. How can we over ... account to in cloud from synced with AD all our issues with this would be resolved.

asked Jul 31, 2019 by john.morrow (250 points)
2,779 questions
2,512 answers
6,574 comments
26,131 users