HiddenFromAddressListsEnabled

Rising Flight 6,176 Reputation points
2025-12-13T18:28:36.5166667+00:00

Hi All,

I am using Exchange Server SE hybrid configuration. We create users on-premises and then migrate their mailboxes to Exchange Online.

I have a CSV file containing users’ email addresses, and these users are currently hidden from the address lists.

I want to import this CSV file and unhide these users from the address lists. Could you please guide me on the correct PowerShell syntax? is the below syntax correct.

Import-Csv C:\Temp\list.csv | ForEach-Object {
    Set-RemoteMailbox $_.email -HiddenFromAddressListsEnabled $false
}

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Teddie-D 9,505 Reputation points Microsoft External Staff Moderator
    2025-12-14T02:22:20.6333333+00:00

    Hi @Rising Flight 

    Thank you for posting your question in the Microsoft Q&A forum. 

    Your PowerShell syntax is almost correct, but there are a few key points to note for a hybrid Exchange environment: 

    Import-Csv "C:\Temp\list.csv" | ForEach-Object { 
        Set-RemoteMailbox -Identity $_.email -HiddenFromAddressListsEnabled $false 
    } 
    

    -Make sure your CSV has a column header named exactly email

    -Use -Identity to explicitly identify each user by email or UPN. 

    -Run this from the on‑premises Exchange Management Shell. In a hybrid configuration, the on‑premises Active Directory remains the source of authority, and any changes you make on‑premises will sync to Exchange Online through Azure AD Connect. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.