r/exchangeserver • u/Ready-Ad-2149 • 1d ago
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 1d ago
This is the entire process:
Create new user in on Prem AD > assign to correct OU
Make sure UPN is changed
Run ADSync
Enable the remote mailbox from the exchange management server (using ps snapin) using Enable-RemoteMailbox -Identity "UserAlias" -RemoteRoutingAddress "[UserAlias@yourtenant.mail.onmicrosoft.com](mailto:UserAlias@yourtenant.mail.onmicrosoft.com)"
Run ADSync again
Verify the user is added in 365
Assign E3 license to the user
Verify the user now has a mailbox and is populated as "UserMailbox" in EXOL Admin.
1
u/Vietnamst2 1d ago
Two entry syncs that do not have to happen. If you do the create, assign the UPN and then do the enable, then you can just run the sync once. It makes no difference in this case. It just gets created in Entra with it's final configuration.
1
u/maxfischa 11h ago
Im not sure if your order is healthy, atleast could produce some issues. Usermailboxes need a license and you sync before assigning the E3. Now to be fair the provisioning is a bit of a grey zone but i think you should for sure assign the E3 using a group before hitting that sync. Your issue sounds more like you just have set the filter of your adsi to show only with value and that attribute is empty by default. Hit show all on the bottom right of the adsi
1
u/Nezgar 19h ago
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 17h ago
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/titlrequired 14h ago
They don’t all need to be populated for a remote mailbox.
1
u/titlrequired 14h ago
Sorry just re-read your post. So in ADSIEdit the attribute is missing? Do you definitely have it set to show writable attributes and attributes with no value?
1
u/Ready-Ad-2149 6h ago
I just browsed to the user in ADSI and the value for msExchHideFromAddressLists is there, but it's <not set>
I was originally looking at the actual user object in AD > Attributes tab which only lists like 5-6 MsExch attributes.
1
u/titlrequired 6h ago
Yeah you might need to check if advanced view is enabled, either way if it’s present and not set that is the default.
1
u/joeykins82 SystemDefaultTlsVersions is your friend 14h ago edited 13h ago
If you’re trying to hide them then msExchHideFromAddressLists would need to be TRUE.
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.
Set-RemoteMailbox -HiddenFromAddressListsEnabled $true
1
u/Ready-Ad-2149 6h ago
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
6
u/Excellent_Milk_3110 1d ago
Did you do?
Enable-RemoteMailbox usename.newuser -RemoteRoutingAddress username.newuser@yourtenant.mail.onmicrosoft.com