0 votes

Hi all,

Currently in a Hybrid environment and have followed the instructions to check whether we have Remote Mailbox enabled,
https://www.adaxes.com/help/?HowDoI.Per ... boxes.html ,
but when running the script to check, it fails to get tenant details

********

$configurationContainerPath = $admService.Backend.GetConfigurationContainerPath("CloudServicesO365")

PS C:\Windows\system32> $configurationContainer = $admService.OpenObject($configurationContainerPath, $cred.UserName, $cred.GetNetworkCredential().Password, 0)

PS C:\Windows\system32> $tenant = $configurationContainer.GetObject("adm-O365Tenant", "CN=$tenantName")
Cannot find an overload for "GetObject" and the argument count: "2".
At line:1 char:1
+ $tenant = $configurationContainer.GetObject("adm-O365Tenant", "CN=$te ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest

********

Any assistance would be appreciated

Running version 2018.2 Ver 3.10.16509.0 all features installed.

TIA

Alex

by (70 points)
0

Hello Alex,

Could you, please, post here or send us (support[at]adaxes.com) the full script you are using?

1 Answer

+1 vote
by (360 points)
selected by
Best answer

For anyone finding this in the future, this is a bug in PowerShell 5.0. To resolve the issue, install the latest version of PowerShell (5.1.14409.1005). It is included in Windows Management Framework 5.1 available here https://www.microsoft.com/en-us/download/details.aspx?id=54616.

Related questions

0 votes
1 answer

Hello, I am trying out Adaxes right now and currently want to automate the steps after creating a user, more specifically O365. FYI, we have a hybrid environment and are ... 'Session'". Can someone please help me get the right script for this operation?

asked May 10, 2018 by yuvrajgill10 (100 points)
0 votes
1 answer

Hi, we are running Adaxes in hybrid setup and on-prem as O365 is connected. My business rules looks like this Based on articles I have read here, the local mailbox should ... with a mailbox size of 2GB. Onprem: Online: Anything I am missing or misunderstood?

asked Jul 17, 2023 by wintec01 (1.1k points)
0 votes
1 answer

Hello! We have an Business Rule that should enable the remote Mailbox after an User is created but that does not work. The Powershell Script that we have in an Custom Command does ... now. What can i do to make it work like we intend to? Thanks in advance!

asked Jun 21, 2023 by eww ag (140 points)
0 votes
1 answer

Hello, I have a sheduled task running. This task checks if a user is a member of a Licensed Office 365 Group with exchange online. If the user does not have an ... the on prem exchange mailbox and the exchange online mailbox? Thanks if you have an idea!

asked Feb 24, 2023 by fabian.p (150 points)
0 votes
1 answer

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 ... there's anything special we need to do in order to get this to work? Thanks Matt

asked Jun 10, 2022 by chappers77 (2.0k points)
3,346 questions
3,047 answers
7,782 comments
544,982 users