eimagine recently underwent a rebranding which included changing our domain from thinketg.com to eimagine.com. Normally this would require clicking through a multitude of menus and screens, but fortunately this can all be accomplished with Powershell.

Fortunately our setup is fairly simple with a single server hosting the CAS, Mailbox, and Edge roles. The manual portion of the setup was to deploy a Server 2012 R2 VM, installed Exchange 2013 CU 8 (Build 15.0.1076.9), install my public CA wildcard certificate in the Local Machine Personal store, and then run the below Powershell commands from the EMS.

First, I need to grab the thumbprint of my wildcard certificate:

Copy the thumbprint and insert it below:

Setup POP and IMAP (if needed):

Setup UM and assign the certificate to all Exchange services:

Enter the old server name and the new server to copy all of the receive connectors:

Enter the URL you wish to use for all of the web services:

Setup Office Web Apps:

Run these commands to set up Outlook Web App integration:

If you have Macs running Office 2016, you will need to add the below key to the registry (see https://support.microsoft.com/EN-US/kb/980436 for more details):

Setup Skype for Business/Lync Integration (if applicable):

First, find the thumbprint of the local machine’s domain CA certificate by running:

Then add the below 2 lines to C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa\web.config under <appSettings> replacing the thumbprint with the value returned above:

Setup the trusted application pool on the Skype Front-end server (requires downtime):

Run a final IISRESET on your Exchange server and then your Exchange server will be fully migrated to the new domain name.

Now you’ll need to set the new email address for all of your users by adding the new domain as an accepted domain in Exchange:

Now set the email address policy to use your new domain name (this will overwrite the default policy making the new domain primary and the old domain secondary):

That’s it!

Please let us know in the comments if you have any questions or need guidance.

Like this post? Share it!