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.