r/exchangeserver • u/Ready-Ad-2149 • Jul 22 '26
Hybrid - Exchange Attributes
I'm having an issue and i'm not sure how to fix it. We moved all mailboxes to 365 over a year ago but still maintain a management server. For some reason, when i create a new user in local AD, then enable the mailbox from the exchange management tools (using the ps snapin for recipient management). There are a lot of "MsExch" attributes missing from attribute editor for that user. There are only like 5 or 6. Both attributes "mail" and "mailnickname" are populated correctly. Most specifically, i'm trying to hide a new user from the address list by changing MsExchHideFromAddressList to "false", but the attribute doesn't exist for that user. I've pushed multiple manual sync's as well.
I checked ADSI and confirmed that the schema has been extended.
Does anyone have any suggestions?
Thanks in advance!
3
u/Ready-Ad-2149 Jul 22 '26
This is the entire process:
8
u/Excellent_Milk_3110 Jul 22 '26
Did you do?
Enable-RemoteMailbox usename.newuser -RemoteRoutingAddress username.newuser@yourtenant.mail.onmicrosoft.com
1
u/Ready-Ad-2149 Jul 23 '26
Hey joeykins82,
Thanks for the response. So i should be able to just plug this in from powershell on the exchange management server?
Set-RemoteMailbox -Identity "UserIdentity" -HiddenFromAddressLists $true
or?
Set-RemoteMailbox -Identity "UserIdentity" -HiddenFromAddressListsEnabled $true
1
u/Ready-Ad-2149 Jul 24 '26
Set-RemoteMailbox -Identity "UserIdentity" -HiddenFromAddressListsEnabled $true
Running this appears to have brought in a lot of attributes to the ad account (attribute editor). It now displays the addresslist entry as false.
Thanks for the help!
3
u/sembee2 Former Exchange MVP Jul 22 '26
What exact command do you use? It should be enable-remotemailbox.
Although you might want to consider moving SOA to the cloud, so you can just manage the account in tbe cloud after initial creation.
1
u/titlrequired Jul 23 '26
They don’t all need to be populated for a remote mailbox.
1
u/Nezgar Jul 23 '26
You could try...
Set-RemoteMailbox -Identity <mailboxID> -HiddenFromAddressListsEnabled:$true
Or
Get-ADuser -Identity username -property msExchHideFromAddressLists | Set-ADObject -Replace @{msExchHideFromAddressLists=$true}
Advantage of Set-ADObject is that you can use this with users, group or contact.
1
u/7amitsingh7 Jul 23 '26
The missing msExch attributes usually indicate that the user wasn't fully Exchange-enabled or the Exchange recipient attributes weren't stamped correctly. Verify that the mailbox was created using the Exchange Management Shell and that Azure AD Connect has completed a full synchronization. Since you're still managing a hybrid Exchange environment, it's also worth reviewing common Exchange hybrid migration issues and their solutions.
1
u/joeykins82 SystemDefaultTlsVersions is your friend Jul 23 '26 edited Jul 23 '26
If you’re trying to hide them then
msExchHideFromAddressListswould need to beTRUE.The attribute does exist: it’s just blank/null by default, and blank/null in this case equals
FALSE. There are very few exchange attributes which need to be populated for directly provisioned remote mailbox users.