Skip to main content
Solved

Office 365 Exchange online

  • November 15, 2022
  • 6 replies
  • 465 views

Forum|alt.badge.img+2

Just a question, We busy in the process in configuring backups for office 365, exchange online to particular and i see i am getting this error in the Logs when it tries to scan for mailboxes. “ Failed to get Oauth2.0 token for powershell”.

 

We also configured for onedrive and sharepoint and those seem to be working 100%.

 

We on Version: 11.24.34

Best answer by Juan-Pierre Panaino

Thanks guys ,

 

Sorry only getting back now to you it was a permissions issue on azure we have a condional access policy that blocks legacy AUTH, and PowerShell is part of this policy i have then excluded my app registration from that policy and problem was resolved.

View original
Did this answer your question?

6 replies

Mike Struening
Vaulter
Forum|alt.badge.img+23

Hi @Juan-Pierre Panaino , thanks for the post.

Disable multi-factor authentication or conditional access policies for the Exchange Online mailboxes that you want to configure for backup operations.

That should resolve the error.

Keep me posted!


Forum|alt.badge.img+2

Hi @Mike Struening  

So i set it up as express so the global admin account i used i did disable the MFA on it and it setup succesfully just when it refreshes for the users i see that error in the Log files.


Mike Struening
Vaulter
Forum|alt.badge.img+23

That definitely should have worked.

I would go ahead and open a support case so they can see why it’s not acting as expected.

Can you share the case number here once created?


Forum|alt.badge.img+14

@Juan-Pierre Panaino 

Are you able to connect to o365 via powershell? Something like this

https://learn.microsoft.com/en-us/microsoft-365/enterprise/connect-to-all-microsoft-365-services-in-a-single-windows-powershell-window?view=o365-worldwide

Once complete you should be able to run get-mailbox to list the mailboxes.

This connection is where is failing you might need to run the following first

Set-ExecutionPolicy RemoteSigned

 


Forum|alt.badge.img+2

Thanks guys ,

 

Sorry only getting back now to you it was a permissions issue on azure we have a condional access policy that blocks legacy AUTH, and PowerShell is part of this policy i have then excluded my app registration from that policy and problem was resolved.


Mike Struening
Vaulter
Forum|alt.badge.img+23

Glad to hear it!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings