How to recreate Outlook profiles after the migration
After performing a migration that includes transferring the domain name to the target server, Outlook cannot connect to the new server. The following error message is shown:
Outlook cannot log on. Verify you are connected to the network and are using the proper server and mailbox name. The Microsoft Exchange information service in your profile is missing required information. Modify your profile to ensure that you are using the correct Microsoft Exchange information service.
This happens because the pre-migration settings of the Autodiscover service, which connects Outlook with Exchange, are still cached in the registry for the currently used Outlook profile. To resolve this, you need to create a new Outlook profile and set it as the default one. This can be done manually for each separate user or automatically for all users in your domain by using Group Policy or Microsoft Intune. Follow the links below to learn how to:
- Create a new Outlook profile for a single user
- Create a new Outlook profile for all users in the domain
- Create a new Outlook profile for all users or group(s) of users with Intune
How to create a new Outlook profile for a single user
- Close Outlook.
- Go to the Windows Control Panel and click Mail (or, if you're using the Category view, first click User Accounts, and then click Mail).
- In the window that opens, click Show Profiles (Fig. 1.).
- Click Add, and provide the name for the new Outlook profile (Fig. 2.). Click OK to proceed.
- Complete the wizard to add your email account and click Finish.
- Make sure the Always use this profile option is selected and choose your newly created profile from the drop-down menu (Fig. 3.).
- Click OK to save changes.
Outlook should now open without any errors and connect to the correct Exchange server.
How to create a new Outlook profile for all users in the domain
A new Outlook profile can be created and set as a default one by using a simple script that adds new values to Windows registry. To bulk create new Outlook profiles for all your users, you can run this script on multiple computers via Group Policy.
In this scenario, the script will be executed as a user logon script. However, a Group Policy object (GPO) can also be configured to run user logoff or computer startup and shutdown scripts.
Follow the links below to:
- create a file containing a script that will create a new Outlook profile
- create a new GPO that will execute that script.
Creating a file containing a script to create a new Outlook profile
- Open Notepad (or any text editor) and paste the following text (depending on which Outlook version you use):
- Outlook 2010
reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<name>" reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" /v DefaultProfile /t REG_SZ /d "<name>" /F reg add "HKCU\Software\Microsoft\Exchange\Client\Options" /v PickLogonProfile /t REG_DWORD /d "0" /f
- Outlook 2013
reg add HKCU\Software\Microsoft\Office\15.0\Outlook\Profiles\<name> reg add "HKCU\Software\Microsoft\Office\15.0\Outlook" /v DefaultProfile /t REG_SZ /d "<name>" /F
- Outlook 2016 and 2019
reg add HKCU\Software\Microsoft\Office\16.0\Outlook\Profiles\<name> reg add "HKCU\Software\Microsoft\Office\16.0\Outlook" /v DefaultProfile /t REG_SZ /d "<name>" /FWhere instead of <name> provide the name for the new Outlook profile.
- Outlook 2010
- Save the file as a BAT file.
- Copy the file to a network location accessible for all users in the domain (e.g. %logonserver%\netlogon).
Make sure that each user has appropriate permissions to access this location.
Creating a GPO executing the script when a user logs in to a workstation
- Log in to your Windows Server domain controller (DC).
- Open Server Manager and select Tools > Group Policy Management.
If it's not there, you need to install this feature first. In Server Manager, select Manage > Add Roles and Features and follow the wizard instructions. Just remember to select the Group Policy Management feature in the Features step (Fig. 4.).
- In the Group Policy Management console, find your domain on the left side navigation menu, right-click it and select Create a GPO in this domain, and Link it here (Fig. 5.).
- Provide the name of the new GPO and click OK.
- Navigate to the Group Policy Objects container on the menu, find your newly created GPO, right-click it and select Edit. The Group Policy Management Editor will open.
- Go to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) and double-click Logon (Fig. 6.).
- In the Logon Properties window, click Add, and then click Browse and select the BAT file created in the section above (Fig. 7.).
- Click OK two times to save the change.
You can now close the Group Policy Management console. The script will be executed for each user when they log in to their workstations. When they try to open Outlook, the Outlook startup wizard will be shown (Fig. 8.).
Fig. 8. The Outlook startup wizard.
The Autodiscover feature should no longer have a problem connecting to the appropriate on-prem Exchange server or Office 365.
|Related products:||CodeTwo Exchange Migration, CodeTwo Office 365 Migration|
|Last modified:||October 21, 2021|
|Created:||May 22, 2018|