Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Microsoft Office / Automatic Outlook User Profile Configuration with ZeroConfigExchange

May 21, 2024

Automatic Outlook User Profile Configuration with ZeroConfigExchange

When a user with an Exchange/M365 mailbox starts Outlook on a computer for the first time, Outlook can automatically create and configure a mail profile for that user. When the ZeroConfigExchange (ZCE) option is enabled, Outlook can automatically get the user’s primary SMTP address from the Active Directory attribute, so the user doesn’t have to enter the email address manually.

By default, when Outlook is started for the first time, a simple wizard is launched to help the user connect to the mailbox. Users must provide their email address and specify that the mailbox is hosted on Exchange (on-prem Exchange or Exchange Online), and then click Next -> Next -> Done. Outlook will then use Autodiscover to obtain the Exchange mailbox connection settings.

To enable Outlook to automatically create a user’s email profile the first time Outlook is started, create a ZeroConfigExchange (REG_DWORD) registry parameter with a value of 1.

  • For Outlook 2021/2019/2016 and Outlook 365: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover
  • Outlook 2013: HKCU\Software\Microsoft\Office\15.0\Outlook\AutoDiscover
  • Outlook 2010: HKCU\Software\Microsoft\Office\14.0\Outlook\AutoDiscover

For example, for Outlook 2019, you can create this parameter by using the command:

reg add HKCU\SOFTWARE\Policies\Microsoft\office\16.0\Outlook\AutoDiscover /v ZeroConfigExchange /t REG_DWORD /d 1

Now, when Outlook starts, it gets the user’s SMTP address from AD, receives the mailbox connection settings via Autodiscover, and creates a new user mail profile. This means that when a user opens Outlook, the profile name and mailbox connection settings are automatically and silently configured without any manual input.

Outlook profile creation wizard

Previously, *.PRF files were used to configure an Outlook mail profile automatically. This file contains the name of the on-premises Exchange Server and the mailbox connection options. The Office Customization Tool (OCT) is used to create PRF files.

A separate Group Policy option can be used to enable ZeroConfigExchange option on computers (requires AMDX templates for Microsoft Office installed). Enable the Automatically configure profile based on Active Directory Primary SMTP address option under the User configuration -> Policies -> Administrative templates -> Microsoft Outlook 2010 -> Account Settings -> Exchange.

GPO: Automatically configure profile based on Active Directory Primary SMTP address

However, if you enable the ZeroConfigExchange option, you won’t be able to create an additional Outlook profile for another Exchange mailbox manually. If you want to allow the creation of additional mail profiles in Outlook, you must create the ZeroConfigExchangeOnce registry parameter. For example, for Outlook 2019 use the command:

reg add HKCU\SOFTWARE\Policies\Microsoft\office\16.0\Outlook\AutoDiscover /v ZeroConfigExchangeOnce /t REG_DWORD /d 1

If you have both ZeroConfigExchangeOnce and ZeroConfigExchange enabled on your computer, you will not be able to create an additional profile because the ZeroConfigExchange parameter has a higher priority. You must remove it or change it to 0.

You can use Group Policy to create these registry options on domain user computers.

ZeroConfigExchange - Automate Outlook profile creation for Exchange users

If an Outlook profile is already configured on the user’s computer, you can set the new profile to open by default. To do this, create a registry key for a new profile and set it as the default Outlook profile:

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>" /F

Now Outlook will no longer prompt to select a profile when it starts, and will always load the default profile.

Set Outlook to not prompt for a profile

The automatic creation of Outlook mail profiles works with on-premises Exchange Server, Exchange Online (Microsoft 365), and hybrid scenarios.

If Autodiscover is not configured for your domain, you can manually configure the connection to your Exchange mailbox in Outlook.
3 comments
7
Facebook Twitter Google + Pinterest
Azure and Microsoft 365ExchangeMicrosoft OfficeWindows 11
previous post
How to Copy/Paste to MS Word without Losing Formatting
next post
How to Share USB Scanner Over Network on Windows with NAPS2

Related Reading

Fix: Signature Button Not Working in Outlook 2019/2016/365

March 11, 2024

Outlook Keeps Asking for Password on Windows

March 17, 2024

Installing an Open Source KMS Server (Vlmcsd) on...

March 13, 2024

How to Increase Attachment Size Limit in Outlook

March 15, 2024

Microsoft Office Volume Activation Using KMS Server

February 24, 2025

Rollback Microsoft Office to an Earlier Version After...

December 10, 2024

How to Check the Activation Status of MS...

March 17, 2024

How to Manually Configure Exchange or Microsoft 365...

March 17, 2024

3 comments

André May 21, 2024 - 8:37 am

This configuration is to force Outlook to open exchange autodiscover?

Reply
admin May 21, 2024 - 12:13 pm

No. In the usual scenario, the Outlook wizard asks the user to specify the email and mailbox type (Exchange). It then uses Autodiscover to configure the mailbox connection.
But after enabling ZeroConfigExchange mode, Outlook will automatically get the current user’s primary SMTP address from AD and then also use autodiscover.

Reply
andre May 21, 2024 - 7:12 pm

In my case where i wok the company has exchange on premesis for mail server, bu then we have offcie 365 this gives problems because outlook prioritizes office365 tenenat and we have to add registry key to autodiscover.

This solution you say is very good if the company has 100 users in domain, the it guy dosent need to go on each computer to configurer

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Encrypt Any Client-Server App Traffic on Windows with Stunnel

    June 12, 2025
  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025
  • Disable the Lock Screen Widgets in Windows 11

    May 26, 2025
  • Configuring Windows Protected Print Mode (WPP)

    May 19, 2025
  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Configuring Password Policy in Microsoft Entra ID
  • Fix: “Something Went Wrong” Error When Installing Teams
  • Send Emails with Microsoft Graph API and PowerShell
  • Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)
  • Sending an E-mail to a Microsoft Teams Channel
  • Disable Welcome Message for Microsoft 365 Groups
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top