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:
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$ct = [System.DirectoryServices.AccountManagement.ContextType]::Domain
$user = [System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($ct, "MYDOMAIN\gtest01")
Now we take the result, in my case:
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:
.NET .NET FrameWork Active Directory Altiris Apple Automation Manager Citrix Dell Delphi Excel Exchange Exchange2003 Exchange2010 Hack HP iOS Java LinkedIn Linux Lync MSI Office Office 2010 Passat Password PowerPoint PowerShell RES RNS510 SasLibEx SCOM Security Terminal Server ThinApp TSAdminEx VBS VCDS Visual Basic Visual Studio VMWare Volkswagen VW Windows PE Wordpress XenApp