Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • 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 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

March 3, 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

PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

October 15, 2023

Configure Email Forwarding for Mailbox on Exchange Server/Microsoft...

September 14, 2023

Disable Welcome Message for Microsoft 365 Groups

August 28, 2023

Configuring Azure AD Password Policy

July 12, 2023

Find Inactive (Unused) Distribution Lists in Exchange/Microsoft 365

June 26, 2023

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

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Outlook Keeps Asking for Password on Windows
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016
  • FAQ: Licensing Microsoft Exchange Server 2019/2016
  • Whitelist Domains and Email Addresses on Exchange Server and Microsoft 365
  • Moving Exchange Mailboxes to Different Database
  • How to Cleanup, Truncate or Move Log Files in Exchange Server 2013/2016/2019?
  • Search and Delete Emails from User Mailboxes on Exchange Server (Microsoft 365) with PowerShell
Footer Logo

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


Back To Top