We help IT Professionals succeed at work.

switched to office 365 and now I keep getting prompted for a password to connect to my exchange server

switched to office 365 and now I keep getting prompted for a password to connect to my exchange server.
I tried going to credential manager and deleting the entry, and have verified that autodiscover can be resolved by nslookup and is working properly.
Comment
Watch Question

Saif ShaikhServer engineer

Commented:

This is expected behaviour.


If all mailboxes are migrated from onpremise exchange server you need to disable autodiscover on exchange server.


Try to set Set-ClientAccessServer –Identity “CASxx” –AutoDiscoverServiceInternalUri $NULL  

By running these steps/commands, you are essentially removing the on-premises information with regard to Autodiscover; thus eliminating the conflict that your end users are experiencing between the O365 autodiscover and the on-premises one.


Author

Commented:
We only use office 365 for the office app. We still connect to our Exchange 2016 server.  It's weird. It looks in at first and then it prompts for pw and never accepts the correct password while it's says connected to exchange server. The volume license version of office never had this  problem. The problem started after moving to office outlook 365. The  server will remain. They want their own exchange server. It's 2016 and fully patched and licensed.
Saif ShaikhServer engineer

Commented:

What is the outlook version is it 


Outlook 2016 plain


OR


Office 2016 for Office 365 business - If it is this then it will connect directly to office 365 mailbox 

https://www.gothamweb.com/portal/index.php/knowledgebase/8/Outlook-bypasses-AutoDiscover-and-connects-directly-to-Office-365-mailbox.html


Saif ShaikhServer engineer

Commented:

Office 2016 for Office 365 business - If it is this then it will connect directly to office 365 mailbox


Then you need to add registry key.


HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\outlook\autodiscover DWORD: ExcludeExplicitO365Endpoint Value = 1


Then restart your computer and it should stop trying to connect to Office 365.

Author

Commented:
Office 2016 for Office 365 business
Saif ShaikhServer engineer

Commented:

Starting in Outlook 2016 version 16.0.6741.2017, Microsoft has enabled a new feature called Direct Connect to Office 365. If you have exchange server and this client   Office 2016 for Office 365 business is designed to connect directly to O365 then you need to add the registry key.


HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\outlook\autodiscover
DWORD: ExcludeExplicitO365Endpoint
Value = 1

Then restart your computer and it should stop trying to connect to Office 365.



Author

Commented:
I can get up to this far: HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft

There is no outlook key under Microsoft.
Saif ShaikhServer engineer

Commented:

You are looking wrong information. Look for   office and not outlook.


You need to look for outlook only after   \office\16.0\outlook\autodiscover

Author

Commented:
Please see the screenshot attached.
outlook-fix.png

Author

Commented:
Did you get the attachment?
Server engineer
Commented:

Please check this new registry location:


[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover]
"ExcludeExplicitO365Endpoint"=dword:00000001