0 votes

Hello, till now we are using "Connect-ExchangeOnline -Credential $svcmsolsync -Prefix O365 #Session aufbauen" in your taks. After updating to adaxes 2023.2 there is a restriction for this code: The cmdlet Connect-ExchangeOnline is not allowed. Use $Context.CloudServices.ConnectExchangeOnline() instead. How can we use this ConnectExchangeOnline() with a prefix (like O365)? Second question, is there a way to turn off this restriction? Kind regards Jo Schmitz

by (20 points)

1 Answer

0 votes
by (272k points)

Hello Jo,

How can we use this ConnectExchangeOnline() with a prefix (like O365)?

Unfortunately, there is no such possibility. However, it is not required. The new method brings the persisting connection established by Adaxes into your script.

Second question, is there a way to turn off this restriction?

It is not possible to deactivate the rule. The behaviour is by design and cannot be changed. There was a dedicated section in the corresponding What’s New article about the correct approach for Exchange Online connection. You can check the following example: https://www.adaxes.com/script-repository/connect-to-exchange-with-powershell-s506.htm.

0

Thank you very much for the answer. But I have to say that I don't understand the sense of blocking an official Powershell module from Microsoft and then not implementing all functions (prefix). We use prefixes for several connections (Teams, Azure, ...). Also that this was only done for Exchange Online and not the other modules. We had to adapt our scripts now from: Connect-ExchangeOnline -Credential $cred Connect-MicrosoftTeams -Credential $cred Connect-AzureAD -Credential $cred To: $Context.CloudServices.ConnectExchangeOnline() Connect-MicrosoftTeams -Credential $cred Connect-AzureAD -Credential $cred I don't have to explain what this looks like. But since it has unfortunately happened now, I would suggest rethinking this in the next adjustments.

0

Hello Jo,

Thank you for the suggestion. We forwarded it to the corresponding department for consideration.

Related questions

0 votes
1 answer

I'm sure I've seen this asked before but I can't seem to find it now. I want a user to enter a 8 digit number and I want to be able to record the 8 digit ... 99123456 I also need 88123456 and 77123456 recorded in AD fields. Is there a way to do this? Jim

asked Apr 11, 2015 by Tigger09 (140 points)
0 votes
1 answer

Hello, our users have to login to the Adaxes web service by using their username and password, no SSO is used. I have configured the option in the web interface ... /access control, but after some weeks/months this happens again. Thank you Regards, Thorsten

asked Jun 4, 2014 by techman26 (240 points)
3,351 questions
3,052 answers
7,792 comments
545,111 users