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.


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.



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
  • Suspend-ClusterNode –Name hostname1
  • Set-MailboxServer hostname1 -DatabaseCopyActivationDisabledAndMoveNow $True
  • Set-MailboxServer hostname1 –DatabaseCopyAutoActivationPolicy Blocked
  • Set-ServerComponentState hostname1 -Component ServerWideOffline -State Inactive -Requester Maintenance


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


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: Logo

You are commenting using your 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.