Install Exchange 2013 CU Update Part 2 – Preparation

In part 2 of this series, we will:

  • Update schema, AD, and domain via command prompt on a domain controller
  • Put Exchange host in maintenance mode via Exchange Management Shell

Before proceeding, be sure the account used is a member of Enterprise Admins and Schema Admins groups in Active Directory.

CUpart2-2.jpgCUpart2-1.jpg

In part 1, we copied the CU installer to the domain controller. We will now proceed running three commands below.

  1. Launch a command prompt as administrator
  2. Navigate to where the CU installer is saved
  3. Run setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
  4. Run setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms
  5. Run setup.exe /PrepareDomain /IAcceptExchangeServerLicenseTerms

I encountered the error below when executing the first command. I then double checked to confirm the account’s membership and restarted the domain controller as well before running the command again.

CUpart2-3.jpg

CUpart2-4.jpgCUpart2-5.jpgCUpart2-6.jpg

We will now put the Exchange host in maintenance mode prior to installing the CU.

First, launch Exchange Management Shell as administrator before running the commands below. Otherwise, it will fail.

Assuming you have multiple Exchange servers in a DAG, failover any active database to another server (Move-ActiveMailboxDatabase Database -ActivateOnServer Server_Name).

The rest of the commands are:

  • Set-ServerComponentState hostname1 –Component HubTransport –State Draining –Requester Maintenance
  • Restart-Service MSExchangeTransport
  • Restart-Service MSExchangeFrontEndTransport
  • Redirect-Message -Server hostname1 –Target hostname2.domain.com
  • Suspend-ClusterNode –Name hostname1
  • Set-MailboxServer hostname1 -DatabaseCopyActivationDisabledAndMoveNow $True
  • Set-MailboxServer hostname1 –DatabaseCopyAutoActivationPolicy Blocked
  • Set-ServerComponentState hostname1 -Component ServerWideOffline -State Inactive -Requester Maintenance

CUpart2-7.jpg

Confirm server is in maintenance mode by running:

  • Get-ServerComponentState <ServerName> | ft Component,State –Autosize

All components should show Inactive except for Monitoring and RecoveryActionsEnabled

CUpart2-8.jpg

One last recommendation is to give this Exchange server a quick reboot to ensure absolutely no connection from any client (Outlook, OWA, ActiveSync) before we begin the installation in part 3 of this series.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.