Outlook 2013/2016 Add Account Issue
Description:
When we first started migrating clients to our new hosted Exchange 2016, we quickly realized that Outlook 2010 wouldn’t add their Exchange accounts no matter how hard we tried tweaking registry settings so we just decided to get everyone to upgrade to Office 2013/2016. Another problem arose where we couldn’t get the accounts to add until we configured a couple registry settings. As usual, I took these and put them in a PS Script.
To Resolve:
-
Push over this file and run it on the remote computer:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# Outlook Config Write-Verbose "Setting Outlook 2016 Add Account Issue Fix" Set-Location HKCU: # AutoDiscover Fix $registryPath = "HKCU:\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover" $Name = "ExcludeHttpsRootDomain" $value = "1" IF(!(Test-Path $registryPath)) { New-Item -Path $registryPath -Force | Out-Null } New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null # AutoDiscover Fix 2 $registryPath = "HKCU:\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover" $Name = "ExcludeHttpsAutoDiscoverDomain" $value = "1" IF(!(Test-Path $registryPath)) { New-Item -Path $registryPath -Force | Out-Null } New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null # Fix Max Accounts Issue $registryPath = "HKCU:\SOFTWARE\Microsoft\Exchange" $Name = "MaxNumExchange" $value = "14" IF(!(Test-Path $registryPath)) { New-Item -Path $registryPath -Force | Out-Null } New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null # Fix Max Accounts Issue 2 $registryPath = "HKCU:\Software\Policies\Microsoft\Exchange" $Name = "MaxNumExchange" $value = "14" IF(!(Test-Path $registryPath)) { New-Item -Path $registryPath -Force | Out-Null } New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
-
This script also sets up a Max Account value higher than normal because sometimes we needed to add 9+ accounts to a single profile.
-
Another thing we had to do after running this script is launch the credential manager and clear their credentials so that Outlook would be forced to ask for the new username and password to connect to the Exchange account (even if it was the same as the one setup with IMAP/POP). You could add the following line to end of your script:
rundll32.exe keymgr.dll,KRShowKeyMgr
Comments