en-US office user

Disable AutoDiscover

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 allows you to disable AutoDiscover. If you enable this policy setting, you can select one or more of the following options to disable in the AutoDiscover feature. "Exclude the last known good URL” – Outlook does not use the last known good Autodiscover URL. "Exclude the SCP object lookup" – Outlook does not perform Active Directory queries for Service Connection Point (SCP) objects with Autodiscover information. "Exclude the root domain query based on your primary SMTP address" - Outlook does not use the root domain of your primary SMTP address to locate the AutoDiscover service. For example, you select this optionOutlook does not use the following URL: https://<smtp-address-domain>/autodiscover/autodiscover.xml. "Exclude the query for the AutoDiscover domain" - Outlook does not use the Autodiscover domain to locate the Autodiscover service. For example, Outlook does not use the following URL: https://autodiscover.<smtp-address-domain>/autodiscover/autodiscover.xml "Exclude the HTTP redirect method" - Outlook does not use the HTTP redirect method in the event it is unable to reach the AutoDiscover service via either of the HTTPS URLs: https://<smtp-address-domain>/autodiscover/autodiscover.xml or https://autodiscover.<smtp-address-domain>/autodiscover/autodiscover.xml. "Exclude the SRV record query in DNS" - Outlook does not use an SRV record lookup in DNS to locate the AutoDiscover service.

Registry

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

More options available

Options

Exclude the last known goode URL
excludelastknowngoodurl boolean
Exclude the SCP object lookup
excludescplookup boolean
Exclude the root domain query based on your primary SMTP address
excludehttpsrootdomain boolean
Exclude the query for the AutoDiscover domain
excludehttpsautodiscoverdomain boolean
Exclude the HTTP redirect method
excludehttpredirect boolean
Exclude the SRV record query in DNS
excludesrvrecord boolean
Exclude initial check to Office 365 Autodiscover URL
excludeexplicito365endpoint boolean
Disable the Autodiscover V2 service
disableautodiscoverv2service boolean

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: Disable AutoDiscover
; State: Enabled
; Supported on: At least Windows Server 2008 R2 or Windows 7

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\autodiscover]
"excludelastknowngoodurl"=dword:00000000
"excludescplookup"=dword:00000000
"excludehttpsrootdomain"=dword:00000000
"excludehttpsautodiscoverdomain"=dword:00000000
"excludehttpredirect"=dword:00000000
"excludesrvrecord"=dword:00000000
"excludeexplicito365endpoint"=dword:00000000
"disableautodiscoverv2service"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Disable AutoDiscover
# 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 'excludelastknowngoodurl' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludescplookup' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludehttpsrootdomain' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludehttpsautodiscoverdomain' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludehttpredirect' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludesrvrecord' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'excludeexplicito365endpoint' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'disableautodiscoverv2service' -Value 0 -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