Exchange Dkim problem

Regreener 21 Reputation points
2021-06-28T15:58:22.19+00:00

Hello
i want to enable Dkim on exchange throught powershell but when i try to connect to exchangeonline i get this error :
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0ff1-ce00-000000000000'.
How can i solve it ? thank you

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,858 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 41,336 Reputation points
    2021-06-29T03:25:04.27+00:00

    Hi @Regreener ,

    It's also suggested to check the instructions in the document below and make sure the cmdlets you used to connect to Exchange Online powershell are proper:
    Connect to Exchange Online PowerShell using modern authentication with or without MFA

    Especially ensure that you are using Connect-ExchangeOnline rather than *Get-Credential** to pass the account's credential, as the Get-Credential cmdlet doesn’t support MFA enabled accounts and may lead to the error you encountered according to the article below:
    Connect to Exchange Online PowerShell without Basic Authentication
    (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
    109975-1.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Andy David - MVP 155.2K Reputation points MVP
    2021-06-28T16:07:47.943+00:00

    Your account is enabled for MFA, have you configured it?

    https://aka.ms/mfasetup

    1 person found this answer helpful.

  2. Amit Singh 5,231 Reputation points
    2021-06-29T04:46:51.447+00:00

    Recommend you to follow the following steps:

    1. login as a tenant admin to https://portal.azure.com
    2. Open the registration for your app in the
    3. Go to Settings then Required Permissions
    4. Press the Grant Permissions button

    Note: If you are not a tenant admin, you cannot give admin consent

    You may try the solutions provided in a similar GitHub issue.

    If this answer was helpful, click “Mark as Answer” or Up-Vote.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.