infosystem.dk ● Mylius Erichsens Vej 11 ● 7000 Fredericia ● Danmark
+45 20 45 99 15
admin@infosystem.dk

Force Outlook to sign in to Hosted Exchange instead of Microsoft 365

Start Windows Powershell

Execute one of the following blocks

Office 2007

New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name ExcludeScpLookup -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name ExcludeHttpsRootDomain -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name ExcludeSrvRecord -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name EnableOffice365ConfigService -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name ExcludeExplicitO365Endpoint -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name ExcludeLastKnownGoodURL -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\12.0\Outlook\AutoDiscover -Name Timeout-Value 10 -PropertyType DWORD -Force
———————–
Office 2010

New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name ExcludeScpLookup -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name ExcludeHttpsRootDomain -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name ExcludeSrvRecord -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name EnableOffice365ConfigService -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name ExcludeExplicitO365Endpoint -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name ExcludeLastKnownGoodURL -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\14.0\Outlook\AutoDiscover -Name Timeout-Value 10 -PropertyType DWORD -Force
———————–
Office 2013

New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name ExcludeScpLookup -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name ExcludeHttpsRootDomain -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name ExcludeSrvRecord -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name EnableOffice365ConfigService -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name ExcludeExplicitO365Endpoint -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name ExcludeLastKnownGoodURL -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\15.0\Outlook\AutoDiscover -Name Timeout-Value 10 -PropertyType DWORD -Force
———————–
Office 2016/2019/2021/365

New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ExcludeScpLookup -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ExcludeHttpsRootDomain -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ExcludeSrvRecord -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name EnableOffice365ConfigService -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ExcludeExplicitO365Endpoint -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ExcludeLastKnownGoodURL -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name Timeout-Value 10 -PropertyType DWORD -Force
———————–

Restart Windows

Skriv et svar