Saturday, May 31, 2014

How to change the RPCClientAccessServer for Exchange 2013

With Exchange 2013 if you have a DAG the DR server can often take on the RCPClientAccessServer name for the database.  
So you think you can use the shell command huh? Set-MailboxDatabase "Mailbox Database Name" -RpcClientAccessServer "ServerName.abccompanyname.com"
Nope this command does not exist anymore with Exchange 2013 server. So you have to use ADSIEDIT to change the legacy DN name. See below for how to change it.
Took me a while to track this down. I found a lot of hits about it a legacy DN and hwo to change it with Exchange 2010 but nothing led me to the actual location within ADSIEDIT
ADSIEDIT.msc
-Open the Configuration Container
-CN=Services
-CN=Microsoft Exchange
-CN=domain name
-CN=Administrative Groups
-CN=Exchange Administrative Group (FYxxxxxxxxxDLT)
-CN=Databases
-CN=DatabaseName
Select the DatabaseName, right-click Properties
In the Attribute Editor tab, find LegacyExchangeDN, select edit
Replace the existing servername with servername that you want
Select OK

Now to verify - from the Exchange Shell run this command below
Get-MailboxDatabase "MailboxDatabaseName" | fl Name, RpcClientAccessServer
The RPCClientAccessServer should now point to the servername that you changed above with ADSIEDIT