Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Outlook / Outlook: The Name Cannot Be Matched to a Name in the Address List

February 28, 2022 ExchangeMicrosoft 365Office 365Outlook

Outlook: The Name Cannot Be Matched to a Name in the Address List

In some cases, when you try to connect a new mailbox hosted on an on-premises Exchange Server or Microsoft 365 (Exchange Online), Outlook shows the following error after you enter your email address and password (or after Autodiscovery is done):

The action cannot be completed. The name cannot be matched to a name in the address list.

Outlook error: The name cannot be matched to a name in the address list

This problem when connecting a mailbox in Outlook may have different reasons. Let’s try to list the most obvious ones.

If a user mailbox has been created recently, you may just need to wait a while before connecting it in Outlook.

Then make sure that the user mailbox is not hidden from the address book. In on-premises Exchange, you need to connect to the Exchange Server host server using PowerShell and run the command below:
Get-Mailbox -Identity k.peterson | Select DisplayName,UserPrincipalName, HiddenFromAddressListsEnabled

If the user is hidden, disable this attribute with the following command:

Set-Mailbox -Identity k.peterson -HiddenFromAddressListsEnabled $false

In Exchange Online (Microsoft 365), you can enable or disable the Hide from address list attribute in Microsoft 365 admin center.

Click Users -> Active Users -> find the user -> Mail -> Edit Exchange Properties. You will be forwarded to Exchange Admin Center (EAC).

microsoft 365 edit exchange user properties

Uncheck the Hide from address lists option.

disable the Hide from address list option

Or, you can clear the HiddenFromAddressListsEnabled attribute via PowerShell using the Set-Mailbox cmdlet (after connecting to an Exchange Online tenant with EXOv2 PowerShell module).

After a while, make sure the user is displayed in the Exchange address book (Global Address List). Connect the Exchange mailbox in Outlook.

If it did not help, remove all saved credentials related to Microsoft Office in Windows Credential Manager (Control Panel -> User Accounts -> Credential Manager -> Windows Credentials).

office 365 clear cached credentials

Delete saved data under the HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity registry key and restart your computer.

remove the office 365 mailbox cached data in registry

Try to create a new e-mail profile in Outlook (Control Panel -> Mail) and connect to your Exchange mailbox.

In on-premises Exchange, make sure if the showInAddressBook user attribute has correct values. Open it in the AD Attribute Editor to make sure that at least two DNs are set:

  • CN=All Users,CN=All Address Lists,CN=Address Lists Container,CN=…
  • CN=Default Global Address List,CN=All Global Address Lists,CN=…

Compare the values with those of other users.

Also, make sure that the following user attributes are filled in and consistent: LegacyExchangeDN, homeMDB, homeMTA, mail, mailNickname, msExchHomeServerName, msExchMailboxGuid, msExchMailboxSecurityDescriptor, proxyAddresses.

If the problem occurs only in Outlook 2019 or Outlook 2016 and the mailbox is located on the on-prem Exchange server, then disable Office 365 AutoDiscover using the ExcludeExplicitO365Endpoint registry parameter:

reg add HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\AutoDiscover /t REG_DWORD /v ExcludeExplicitO365Endpoint /d 1

The ExcludeExplicitO365Endpoint attribute was described in detail in the article Outlook continually prompts for password.

Restart your computer. Outlook should now be able to discover your on-premise Exchange without any problems.

0 comment
1
Facebook Twitter Google + Pinterest
previous post
Search and Delete Emails from User Mailboxes on Exchange Server (Microsoft 365) with PowerShell
next post
Installing PowerShell Core on Linux Distros

Related Reading

Finding Duplicate E-mail (SMTP) Addresses in Exchange

January 27, 2023

Granting Send As and Send on Behalf Permissions...

December 21, 2022

How to Manually Configure Exchange or Microsoft 365...

December 5, 2022

Exporting Microsoft 365 (Exchange Online) Mailbox to PST

November 23, 2022

How to Enable Maintenance Mode on Exchange Server?

November 16, 2022

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Configure User’s Folder Redirection with Group Policy

    February 3, 2023
  • Using Previous Command History in PowerShell Console

    January 31, 2023
  • How to Install the PowerShell Active Directory Module and Manage AD?

    January 31, 2023
  • Finding Duplicate E-mail (SMTP) Addresses in Exchange

    January 27, 2023
  • How to Delete Old User Profiles in Windows?

    January 25, 2023
  • How to Install Free VMware Hypervisor (ESXi)?

    January 24, 2023
  • How to Enable TLS 1.2 on Windows?

    January 18, 2023
  • Allow or Prevent Non-Admin Users from Reboot/Shutdown Windows

    January 17, 2023
  • Fix: Can’t Extend Volume in Windows

    January 12, 2023
  • Wi-Fi (Internet) Disconnects After Sleep or Hibernation on Windows 10/11

    January 11, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Outlook Keeps Asking for Password on Windows
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016?
  • Whitelist Domains and Email Addresses on Exchange Server and Microsoft 365
  • How to Cleanup, Truncate or Move Log Files in Exchange Server 2013/2016/2019?
  • Moving Exchange Mailboxes to Different Database
  • Fix: Microsoft Outlook Search Not Working on Windows 10/11
  • How to Delete or Rename Default Mailbox Database in Exchange Server?
Footer Logo

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


Back To Top