Cannot start microsoft outlook. the attempt to log on to microsoft exchange has failed

Hello Spice Heads,

I have a strange and unusual situation with Outlook today.

I am preparing to give a user a new desktop computer and in the process of setting everything up on the new machine.

This is a Windows 10 Pro box, and the version of Office we use is  2019 Office 365 (Microsoft 365 Apps for Enterprise)

We have our own on-premise Exchange 2013 server and not using Exchange Online.

When I attempt to open Outlook, I get a message:

 "Cannot start Microsoft Outlook. Cannot open the Outlook Window.The set of folders cannot be opened. The attempt to log on to Microsoft Exchange has failed."

Now, I've googled this extensively and have come up with several solutions that still won't fix my problem

1. Start Outlook in Safe Mode - Still won't open
2. Create new Outlook Profile - Tried several times and still won't open
3. Run the resetnavpane command - did not fix the problem
4. Disable Exchange cached mode - No difference
5. Repair Outlook Data File - No data file to repair as Outlook never opened to create one.

I've already setup other user's new computers and didn't have this problem.
The user's old computer is running Office 2013 and has no problems with Outlook.

I'm stuck! Any suggestions please?

I’ve been travelling a lot for work this year, and when I’m away from home I generally leave my home PC on.

It was upon returning from a work trip that I found Windows had pushed an update to it, and it had restarted – and from that moment, Outlook was broken.

Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened. The attempt to log on to Microsoft Exchange has failed.

I tried all the usual suspects thinking this was going to be a quick fix:

  1. Repair Office.
  2. Run Outlook in Safe mode. (Start / Run / outlook.exe /safemode).
  3. Reset the nav pane (Start / Run / outlook.exe /resetnavpane).
  4. Create a new profile. (Start / Control Panel / Mail / Show Profiles / Add…)
  5. Ran the “Outlook Support & Recovery Assistant“.

No dice.

Desperation started to set in. Whilst I could still use Outlook on the web and my iPhone, I’m really quite dependent on the search syntax in Outlook, and it’s an archive I’m digging into all the time.

  1. Uninstall and reinstall Office.

Nup.

OK, this PC is getting on in years, let’s use this as an excuse for a rebuild – and if I’m going to go to that effort, we might as well do it properly. Add a new motherboard, twice as much RAM, etc. (Yes, quite the silver lining here.)

Nup.

I put up with this for a couple of months – remembering, I’m still away from home for a week at a time, and only back each weekend to do the washing, cuddle/kiss husband and cats as appropriate, and then I’m off again for another week.

I eventually decided it was beyond me and my Googling skills, and I logged a ticket with O365 support.

Naturally, they need to start from the beginning, so whilst on the phone to the support agent – over what turned into a 3 week period – we did the safemode, resetnavpane, new profiles, repair, Support & Recovery Assistant, etc tango over again.

The peculiar thing here is that I could log into my O365 e-mail from other PCs on the domain here, and log into other accounts from this machine – it just didn’t seem to like the combo of Greig the local AD user (sync’d to the cloud) and “other Greig”, the cloud-only mail user.

Things got a little more serious:

  1. Set Skype for Business to Disabled in Task Manager / Startup (the logic there being that it might be the Outlook plugin causing it).
  2. Rename the Outlook folder at c:\users\<me>\AppData\Local\Microsoft\Outlook.
  3. Drop the machine off the domain.

YES! That fixed it. OK, but no, that’s not an acceptable solution. Back to the domain it goes, and the fault recurs.

  1. Is it maybe some rogue Group Policy? Move the machine and my user accounts to the default OUs/containers & reboot. Nope.
  2. We took the machete to my saved windows credentials (Start / Credential Manager / Windows Credentials) and delete anything that had the name of my SMTP account, or was ambiguous (which looked to be Teams-related).

Still nowhere.

Armed with some comparison logs from Fiddler, my support rep was EVENTUALLY able to return with the fix: a new registry key!

Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover Name: ExcludeScpLookup Type: REG_DWORD Data: 1
  1. Add the key.
  2. Reboot.
  3. Rename the Outlook folder at c:\users\<me>\AppData\Local\Microsoft\Outlook.
  4. Create a new profile.

BAM! We’re up.
 

Postscript

If you’re way ahead of me here, you’ve already realised the issue is all because I have an on-premises Exchange deployment that *is* in hybrid mode with Office 365 – but the SMTP account in question belongs to a cloud-only user.

If anything it’s a lesson to be careful in how you do your coexistence with Office 365. Whilst my scenario isn’t the right way to do a migration, it might be something you’ll encounter in an M&A (Mergers & Acquisitions) scenario, with a mix of on-prem and cloud users.

But surely a message to say my user doesn’t exist in the local AD/Exchange would have made more sense, and been a little easier to resolve?

And why did this start out of the blue? Did the surprise Windows or Office update that started this reset a previous registry setting??

I guess I’ll never know – but at least I have my beloved search syntax back now.

Reference

  • Unexpected Autodiscover behavior when you have registry settings under the \Autodiscover key

Revision History

28th October 2019: This is the initial publication.
29th October 2019: Added some sub-folders overlooked in the “Rename the Outlook folder” step.

– G.

Why is my Outlook not connecting to the Exchange Server?

Ensure Outlook is online This is important because, in the offline mode, Outlook can't connect to the Microsoft Exchange servers, and thus, will throw the “Outlook cannot connect to server” error. To fix this: Go to the Send/Receive tab in Outlook. Look for an option called “Work Offline” and click it.

How do you fix Cannot start Microsoft Outlook Cannot open Outlook window the set of folders Cannot be opened the attempt to log on to Microsoft Exchange has failed?

This is what you need to do. Step 1: Simply open the Run dialog box on your system and type in "outlook.exe /resetnavpane". Step 2: After typing, press the Enter key or click on "OK" and then launch Outlook. The settings will begin to recover now.

How do I fix Microsoft Outlook Cannot start the problem?

Choose Start > Run, and in the Open box, type Outlook. ... .
In the upper-left corner of Outlook, choose File > Options > Add-ins..
Select the check box next to an add-in you want to re-enable, and then choose OK..
Repeat all steps until you've re-enabled all of the original add-ins and revealed the source of the error..

How do I force Outlook to connect to Exchange Server?

Step 1: Open Outlook. Step 2: Click on the "File">" Info"> Account and Social Network Settings">" Account settings". Step 3: Select your account and click on the "Change> "More Settings">" Connection" tab. Step 4: Under Outlook Anywhere, choose the "Connect to Microsoft Exchange using HTTP" option.

Toplist

Neuester Beitrag

Stichworte