$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
In Exchange it’s possible to hide a Mailbox from the (Global) Address List. You can do that in the Exchange System Manager:
But after you have hidden a Mailbox you cannot create an Outlook profile for it (or add it as an extra mailbox).
When you click Check Name in the wizard you’ll get an error:
The common workaround is to remove the “Hide from Exchange address lists” setting, create the profile (or add the Mailbox) and afterwards set it again.
Once the profile is created it all keeps working.
There is an easier solution though!
If you add the mailbox using the legacyExchangeDN attribute then Outlook happily accepts.
This works because Outlook really uses this value and not the user’s accountname to connect to a Mailbox.
The Error above occurs because Outlook cannot resolve the username to the legacyExchangeDN name using the Address List.
So how do we get the user’s legacyExchangeDN?
It can be read using ADSI Edit:
But I prefer to read it with a script since it means less clicking.
Using PowerShell it’s also a very simple script:
1 2 3 4 5 | Add-Type -AssemblyName System.DirectoryServices.AccountManagement $ct = [System.DirectoryServices.AccountManagement.ContextType]::Domain $user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($ct, "MYDOMAIN\gtest01") $user.GetUnderlyingObject().legacyExchangeDN |
Now we take the result, in my case:
1 | /O=My Organisation/OU=DMN-ORGANISATION/cn=Recipients/cn=gtest01 |
Now we copy & paste this into the User Name Edit:
And Outlook will resolve it to the username
The same procedure can be used if you want to Add a Hidden Mailbox as Additional Mailbox:
4 Responses for "Adding a hidden Exchange mailbox to Outlook"
Thank you!
Works like an absolute charm. Thank you.
Thanks, that’s really helpful.
If you’re using the exchange shell and feel like typing a little less, you can just do the following to get the Legacy DN:
Get-Mailbox “username” | select LegacyExchangeDN
HTH
Thanks. Worked perfectly and much more elegant than making it temporarily visible.
Leave a reply