en-US office user

Automatically configure profile based on Active Directory Primary SMTP address

Verified with Microsoft 365/Office 5568.1000 — updated on September 4, 2026

Microsoft 365/Office 5568.1000

Supported on: At least Windows Server 2008 R2 or Windows 7

Path in the GPO console

User Configuration\Administrative Templates\Microsoft Outlook 2016\Account Settings\Exchange

Description

This policy setting controls whether a user’s Active Directory Primary SMTP address is automatically used when any new profile is created. If you enable this policy setting, when a user creates any new profile, the user’s Active Directory Primary SMTP address is used for the profile. The user can only enter a profile name. The wizard used to configure specific profile settings is not shown to the user as the profile is created. Note: If you want only the first new profile to use the Active Directory Primary SMTP address, and allow the user to specify a different SMTP address when creating other profiles, then use the “Automatically configure profile based on Active Directory Primary SMTP address (one-time only)” policy setting instead. If you disable or don’t configure this policy setting, when a user creates a new profile, the wizard used to configure specific profile settings is shown to the user and the user can specify any SMTP address as the profile is created.

Registry

HKCU software\policies\microsoft\office\16.0\outlook\autodiscover

Value name: zeroconfigexchange

Enabled: zeroconfigexchange = 1

Disabled: zeroconfigexchange = 0

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Automatically configure profile based on Active Directory Primary SMTP address
; State: Enabled
; Supported on: At least Windows Server 2008 R2 or Windows 7

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\autodiscover]
"zeroconfigexchange"=dword:00000001
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Automatically configure profile based on Active Directory Primary SMTP address
# State: Enabled
# Supported on: At least Windows Server 2008 R2 or Windows 7
# Warning: In SYSTEM context (the Intune default), HKCU targets the SYSTEM profile. Run this script using the logged-on credentials.

$path = 'HKCU:\software\policies\microsoft\office\16.0\outlook\autodiscover'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'zeroconfigexchange' -Value 1 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview