Issue with using a Hosted Exchange mailbox with Office 365 Outlook

If you are using an Outlook suite purchased via Office 365, but your mailbox is hosted with Hosted Exchange (or another external Exchange provider), you may see issues with Autodiscover due to a lookup that Office 365 Outlook suites do that looks for an Office 365 mailbox before processing other lookups. Unfortunately, there is not a way to resolve this globally, as it is a designed lookup with Outlook via Office 365. However, there is a registry edit you can do to prevent this lookup from interfering. The regedit that would need run is detailed below. The text can be copied to a text editor and saved as a .reg file to run, which can then be run to edit the registry automatically:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover]
"PreferLocalXML"=dword:00000000
"ExcludeHttpsAutoDiscoverDomain"=dword:00000001
"ExcludeHTTPRedirect"=dword:00000000
"ExcludeHttpsRootDomain"=dword:00000001
"ExcludeScpLookup"=dword:00000001
"ExcludeSrvLookup"=dword:00000001
"ExcludeSrvRecord"=dword:00000001
"ExcludeExplicitO365Endpoint"=dword:00000001