https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps
that switch is only used for CBA and requires the onmicrosoft.com domain name, not the TenantID:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
I tried following the document: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth but unable to get through this step: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#register-service-principals-in-exchange.
I am facing Connect-ExchangeOnline: A parameter cannot be found that matches parameter name 'Organization'. while running the command (Connect-ExchangeOnline -Organization <mytenantId>) in Powershell as described in above OAuth documentation.
Below is the screenshot.
If anyone in your known has knowledge about it, please guide me through.
https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps
that switch is only used for CBA and requires the onmicrosoft.com domain name, not the TenantID:
First, find you tenant ID follow this article: Find tenant ID through the Azure portal
Install Exchange online Module and connect to Exchange online from Windows PowerShell:
I am using V2 module 2.0.6, there doesn't exist any issue with it.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.