New Exchange 2013 Certificate

This guide shows how to generate a new certificate for a 3rd party company like DigiCert, GoDaddy etc. and how to complete the request and assign services to the certificate.

Login to the Exchange Admin Center.

Cert1

  • Step 1 -> Click on Servers.
  • Step 2 -> Click on Certificates.
  • Step 3 -> Click the + button to start the process.

Cert2

  • Step 1 -> Leave the default option selected.
  • Step2 -> Click Next.

Cert3

  • Step 1 -> Type in the Friendly Name for the certificate.
  • Step 2 -> Click Next.

Cert4

  • Step 1 -> We are not requesting a wildcard cert so leave that option and click Next.

Cert5

  • Step 1 -> Click on the Browse button to select which server you want to store the request on.

Cert6

  • Select your server and then click the Ok button.

Cert7

  • The server you selected in the previous step will now show in the box above.
  • Step 1 -> Click Next.

Cert8

  • Here is where you need to make sure your names are correct. For this exercise I made mine mail.domain.com, internally and externally.
  • Click Next.

Cert9

  • Step 1 -> Once you have changed the names a list of names appears above, you can remove or add as you wish.
  • Step 2 -> Click Next.

Cert10

  • Step 1 -> Type in the Organization Name.
  • Step 2 -> Type in the Department Name.
  • Step 3 -> Type in your City Name.
  • Step 4 -> Type in your State/Province Name.
  • Step 5 -> Select your country.
  • Step 6 -> Click Next.

Cert11

  • Step 1 -> Specify the location where the Request will be saved as you will need to upload this file to the 3rd party company.
  • Step 2 -> Click Finish.

 

Completing the Certificate Request.

Cert12

  • Once the screen above has closed the Certificate page will refresh and then show the above.
  • You have a pending request, click on the Complete link (Step 1)

Cert13

  • Step 1 -> Input the location where you downloaded the certificate that you received from the company you chose like DigiCert, GoDaddy etc. and then click the okay button.
  • Once this has completed, double click the cert or click the pencil and then go and assign services to your certificate.
  • Lastly, perform an IISRESET or reboot the server.

Hope it helps.

Completing Certificate request Error Exchange 2013

Setting up my test lab I ran into a problem when trying to complete my certificate request.

I logged into OWA from my machine and pointed to a folder that had full permissions. Upon clicking okay the following error popped up:

Aetech Cert Error

I then logged into the server and followed the same process. The exact same error occurred.
I then re-downloaded the file from DigiCert and tried it again, this time it worked. Seems like a bad download.

Hope it helps.

Configure Virtual Directories in Exchange 2013

outlookanywhere1

  • Login to the Exchange Admin Center.

virtuald2

  • Step 1 -> Click on Servers.
  • Step 2 -> Click on Virtual Directories
  • Step 3 -> Click the drop down menu and select your first server, leave the select type as “All”

 In the next section we are going to setup/configure the following:

  • Autodiscover
  • ECP
  • EWS
  • ActiveSync
  • OAB
  • OWA
  • PowerShell

Autodiscover

Double Click Autodiscover (Default Web Site) or click on the name and then click the Pencil.

virtuald3

  • Click on the Authentication Tab.
  • Select your Authentication Type.
  • Click Save.

ECP

Double Click ECP (Default Web Site) or click on the name and then click the Pencil.

virtuald4

  • On the General tab configure you Internal and External URL (this is the name you specified on your certificate)
  • Click on the Authentication Tab and set your preferred method.
  • Click Save.

EWS

Double Click EWS (Default Web Site) or click on the name and then click the Pencil.

virtuald5

  • On the General tab configure you Internal and External URL (this is the name you specified on your certificate)
  • Click on the Authentication Tab and set your preferred method.
  • Click Save.

Microsoft-Server-ActiveSync

Double Click Microsoft-Server-ActiveSync (Default Web Site) or click on the name and then click the Pencil.

virtuald6

  • On the General tab configure you Internal and External URL.
  • Click on the Authentication Tab and set your preferred method.
  • Click Save.

OAB

Double Click OAB (Default Web Site) or click on the name and then click the Pencil.

virtuald7

  • Configure you Internal and External URL.
  • Click Save.

OWA

Double Click OWA (Default Web Site) or click on the name and then click the Pencil.

virtuald8

  • On the General tab configure your Internal and External URL.

virtuald9

  • On the Authentication Tab select your method.

virtuald10

  • On the features tab, enable the features you want users to have access to/see.

virtuald11

  • On the file access tab make your selections.
  • Click Save.

PowerShell

Double Click Powershell (Default Web Site) or click on the name and then click the Pencil.

virtuald12

  • On the General tab configure you Internal and External URL.
  • Click on the Authentication Tab and set your preferred method.
  • Click Save.

Hope it helps.

Set Outlook Anywhere URLs in Exchange 2013

outlookanywhere1

  • Login to the Exchange Admin Center.

outlookanywhere2

  • Step 1 -> Click on Servers.
  • Step 2 -> Click on one of the servers.
  • Step 3 -> Click on the Pencil.

outlookanywhere3

  • Step 1 -> Click on Outlook Anywhere.
  • Step 2 -> Enter in the URL (this is normally what you set on you certificate)
  • Step 3 -> Enter in the URL.
  • Step 4 -> Select your authentication.
  • Click on Save.

Do the same for your other exchange servers.

Hope it helps

Upgrade to Exchange 2013 CU6

Steps:

  • Reboot servers to clear any updates that have applied.
  • Prepare Schema and Active Directory.
  • Place server in Maintenance Mode.
  • Run the Exchange Setup.
  • Take server out of maintenance mode.

Active Directory Preparation:

From an elevated prompt you can run the following commands:

  • Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
  • Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

Start Maintenance Mode:

(**You need to open up the Exchange Management Shell as Administrator or point 3 will give you a permission error**)

Open up an elevated Exchange Management Shell and run the 4 commands, let each one complete before doing the next one:

  • Set-MailboxServer <Server Name> -DatabaseCopyActivationDisabledAndMoveNow $True
  • Set-ServerComponentState –Identity <Server Name> –Component HubTransport –State Draining –Requester Maintenance
  • Suspend-ClusterNode –Name <Server Name>
  • Set-MailboxServer –Identity <Server Name>–DatabaseCopyAutoActivationPolicy Blocked

Start Exchange 2013 CU6 Upgrade:

Open up the Exchange CU6 file you downloaded and extracted and double click the Setup file.

Setup1

  • Click Next.

Setup2

  • Checking for Updates. Wait for it to finish.

 

Setup3

  • Once it has checked for updates then click Next.

 

Setup4

 

  • Exchange setup busy copying files.

Setup5

  • Copy progress screen.

 

Setup6

  • Exchange Setup busy initializing.

 

Setup7

 

  • Once it has finished initializing you can now start the upgrade. Click Next.

Setup8

  • Accept the license agreement and then click Next.

 

Setup9

  • Readiness Checks. wait for it to complete.

 

Setup10

  • Now that its complete click the Install button. Below are the different steps:

 

Setup11  

Setup13

 

Setup14

Setup15

Setup16

Setup17

Setup18

Setup19

Setup20

Setup21

Setup22

Setup23

Setup24 Setup25

 

Stop Maintenance Mode:

We need to run 4 commands again to Stop Maintenance Mode:

(**Remember you need to run these commands as an administrator from an elevated Exchange Management Shell)

  • Set-MailboxServer –Identity <Server Name> –DatabaseCopyAutoActivationPolicy Unrestricted
  • Resume-ClusterNode –Name <Server Name>
  • Set-ServerComponentState –Identity <Server Name> –Component HubTransport –State Active –Requester Maintenance
  • Set-MailboxServer –Identity <Server Name> –DatabaseCopyActivationDisabledAndMoveNow $False

Now after that run the following command to check the DAG status:

  • Get-Mailboxdatabasecopystatus *

Hope it helps.

Setup Exchange 2013 Journaling

Brief Description:

Journaling can help your organization respond to legal, regulatory, and organizational compliance requirements by recording inbound and outbound email communications. When planning for messaging retention and compliance, it’s important to understand journaling, how it fits in your organization’s compliance policies, and how Microsoft Exchange Server 2013 helps you secure journaled messages.

Prerequisites:

  • Exchange Administrator with full access.
  • To enable journal rules, an Enterprise CAL must be purchased.
  • Port 25 needs to be open.

Steps:

  • Create Journal Contact.
  • Create SMTP Connector.
  • Enable Journaling.
  • Enable Journaling Rule.

Create a Journal Contact:

ExJounal1

  • Open up the Exchange Admin Center.
  • Type in the user that will be configuring jounaling.
  • Click Sign in.

ExJounal2

  • Step 1 -> Click Recipients.
  • Step 2 -> Click Contacts.
  • Step 3 -> Click the + button. After that click “Mail Contact”.

ExJounal3

  • Step 1 -> Enter a First Name for the Journaling contact.
  • Step 2 -> Enter a Last Name.
  • Step 3 -> Enter in the Alias Name.
  • Step 4 -> Enter the external email address as provided by your ISP.
  • Optionally you can add this to an organizational unit. Do so by click the Browse button and then making a selection.
  • Step 5 -> Click the Save button.

ExJounal4

  • Once saved the new contact will show.

Create SMTP Send Connector:

ExJounal5

  • Step 1 -> Click on mail flow.
  • Step 2 -> Click Send Connectors.
  • Step 3 -> Click the + button.

ExJounal6

  • Step 1 -> Type in the connector name. E.G. Journal Connector.
  • Step 2 -> Click on Custom.
  • Step 3 -> Click Next.
  • On the next page add in a smart host. Make sure your authentication is set to none.
  • Click on Save.
  • Click on Next.

ExJounal7

  • Click on the + button.
  • Once the next window comes up select the server.
  • Once completed the server will show.
  • Click the Finish button.

By default, the maximum send message size is set to 10 MB. You can change the maximum send message size to 100 MB as an example.

To change this open up the Exchange Management Shell and type in the command below:

  • Set-SendConnector “<JournalConnectorName>” -MaxMessageSize “100 MB”

Once done you can verify the change has complete by running this command:

  • Get-SendConnector “<JournalConnectorName>” |fl MaxMessageSize

Enable Journaling:

ExJounal8

  • Step 1 -> Click on Servers.
  • Step 2 -> Click on Databases
  • Step 3 -> Double Click on the mailbox database that requires journaling activation.
    • Select Maintenance.
    • Click Browse next to the journal recipient field.
    • Select the Journaling Contact you created earlier.
    • Click Ok.
    • Click Save.
  • Perform the above steps if you have additional mailbox databases you need to activate this on.

Enable Journaling Rule:

ExJounal9

  • Step 1 -> Click on Compliance Management.
  • Step 2 -> Click Journal Rules.
  • Step 3 -> Click the + button.

ExJounal10

  • Step 1 -> Enter a name for the journal rule.
  • Step 2 -> Click the drop down and select “Apply to all messages”
  • Step 3 -> Here you have 3 options, All Messages, Internal Messages Only, External Messages Only. Select one of them.
  • Step 4 -> Enter in the email address that will receive the journal reports.
  • Step 5 -> Click Save.

ExJounal11

  • As shown above the journal rule is enabled.

Hope it helps.

Exchange 2013 Setup Step by Step

This guide shows you how to install Exchange 2013 step by step. It shows how to configure Active Directory and create a DAG with its network requirements.

The document shows you how to do the following:

  • Prepare & Configure Active Directory.
  • DNS Setup (Internal & External)
  • Exchange Installation.
  • Network Setup/Preparation for your DAG.
  • DAG setup.
  • Accepted Domain Setup.
  • Send/Receive Connector setup.
  • Setup SSL Certificate (I could not create this in my sandbox environment but provided links)
  • Public Folder Setup.
  • Create a Distribution List.
  • Create a Contact.
  • Create a Shared Mailbox.
  • Monitoring Queue and DAG Status.

Active Directory and DNS Preparation:

Minimum Domain Requirements:

  • Windows Server 2003 Standard with Service Pack 2 (SP2)
  • Support for Windows Server 2012 R2
  • Active Directory Forest Level – Windows Server 2003 or Higher
  • User Account member of the Domain, Schema and Enterprise Admins Groups.

Internal DNS Setup

exsetup1

  • Create a CNAME record for Autodiscover that points to your server.
  • Alias Name will be autodiscover (as shown above)
  • FQDN will be the full name in the forward lookup zone you added the CNAME in. for example, if it was domain.com then autodiscover would be autodiscover.domain.dom.
  • FQDN for Target host is your primary exchange server.

External DNS Setup

  •  Create an A record that will point to your public IP for that exchange server.

Server Preparation:

  • Server 2012 Operating System (Need to be the same version as we going to setup a DAG)
  • Join Server to Domain.
  • All Windows Updates installed.

Windows Features to be installed via Windows Powershell:

  • Install-WindowsFeature RSAT-ADDS
  • Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

Once the above features have installed restart your server.

Exchange Prerequisites:

**After installing the 3 Prerequisites reboot**

Prepare Active Directory and Schema:

Open up an elevated command prompt and run the following commands.

Schema Preparation:

  • E:\Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms

AD Preparation:

  • E:\Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

**Replace E:\ with your own drive letter.

Install Exchange 2013

Open up ISO that you mounted and double click the Setup File. Always run the setup “As Administrator”.

exsetup2

  • Select whether you want to download updates and then click the Next.

exsetup3

  • If any updates are found it will list them, no updates found in this setup, click the Next button.

exsetup4

  • Exchange setup copying files, wait for it to finish.

exsetup5

  • Server Setup is initializing.

exsetup6

  • Introduction page, click the Next button.

exsetup7

  • Accept the License Agreement and then click Next.

exsetup8

  • Make your choice, this installation we went with the default settings. Click Next.

exsetup9

  • Select the roles you want to install, in this installation all roles were chosen. Click Next.

exsetup10

  • You can accept the default location or click Browse change the install location. Once done click Next.

exsetup11

  • Malware settings left on, you can make your selection here and then click next.

exsetup12

  • Once the readiness checks are complete, click on the Install Button to start the Exchange 2013 installation.

exsetup13

  • Exchange 2013 setup has 14 steps to complete. This can take a little while.

exsetup14

  • Once the installation is complete you will see the screen above. You can launch the Exchange Management Center by selecting the checkbox.
  • I recommend rebooting the server.
  • Once you have rebooted, you can login to the Exchange Admin Center as follows:

exsetup15

Post installation and setup tasks:

  • Setup Network.
  • Setup Permissions.
  • Create a DAG, Add servers to the DAG, create mailbox copies.
  • Accepted Domains.
  • Setup Send/Receive Connectors.
  • Setup SSL Certificate.
  • Public Folders.

Prerequisites: – AD

  • Create a computer account in Active Directory; you can call it EX2013DAG for example.
  • Disable the computer account.
  • Open up Active Directory Users and Computers. Make sure you have Advanced Features Enabled. Right click on the computer account just created and select properties. Click on the Security Tab.
  • Grant the Exchange Trusted Subsystem Full Control.
  • Add the DAG Members with Full Control.

Prerequisites: – Network

exsetup16

  • One NIC that has Internet Access.

exsetup17

  • Second NIC purely for DAG traffic. No Default Gateway to be setup or DNS servers. (Shown Above)

exsetup18

**Vitally important that you remove the checkbox that says “Registers this connection’s addresses in DNS on the Second NIC.

  • Make sure that your Binding Order is correct with NIC 1 first on the list.

For example, if you setup this server NIC 2 IP as 192.168.0.1 then your second server should be 192.168.0.2 with the same subnet.

Remember that the Second NIC needs to be on a different subnet to that of your LAN.

 DAG IP:

  • This is an IP address assigned to the DAG that is separate from the Server itself. Reserve an IP address in DHCP or give it an IP that is part of an exclusion range.

Witness Server:

  • Best practice is to use an Exchange 2013 CAS server. Any windows server will do, but you need to add the Exchange Trusted Subsystem as an administrator to that local PC before you can use it.
  • The file share witness also requires the File Server feature installed. (if not an exchange server)

Assign Permissions:

Login to the EAC -> Click on Permissions -> Admin Roles

exsetup19

  • Click on Organization Management and click the Pencil button next to the + button.
  • Scroll down and by Members click the + button and add in the users that will be managing exchange.
  • Click on “Outlook Web App Policies and modify or create a policy.
  • You can also define user roles.

Create a DAG:

GUI Setup: Click on Servers -> Database Availability Groups -> + button.

exsetup20

Exchange Management Shell Setup:

Open up the EMS and type in the following command:

  • New-DatabaseAvailabilityGroup –Name <DAGNAME> –WitnessServer <ServerName> –WitnessDirectory “C:\FSW” – DatabaseAvailabilityGroupIPAddresses <IP Address>

Add Servers to the DAG:

GUI -> Add Servers:

exsetup21

Exchange Management Shell Command:

  • Add-DatabaseAvailabilityGroupServer –Identity <DAGNAME> –MailboxServer <ServerName>

Once the command completes add in the second server.

Create Database Copies:

Now that your DAG has been created, you can add copies of mailbox databases to other mailbox servers.

GUI Setup.

exsetup22

  • Click browse to select the server.

If you have a Database called Database1 you can add it to Ex2013b server as an example.

Exchange Management Shell Command:

  • Add-MailboxDatabaseCopy –Identity <DatabaseName> –MailboxServer <ServerName>

Create a user mailbox:

GUI Setup: Click on Mailboxes -> + button -> User Mailbox.

exsetup23

  • Enter in all the information for the user, you can also specify a specific mailbox database and whether or not to show/hide the user from address lists.

Exchange Management Shell Setup:

  • New-Mailbox-Alias EdTest -Name “Ed Test” -Firstname Edward -LastName Test -DisplayName “Edward Test” -UserPrincipalName EdTest@maildomain.com -Password <ConvertTo-SercureString -String ‘TestPassword’ -AsPlainText -Force> -Database <ServerName>

Setup Accepted Domains:

In the ECP click on Mail Flow -> Accepted Domains.

exsetup24

  • Click the + sign to add in a new accepted domain.
  • Type in the Name (descriptive).
  • Type in the Domain.
  • Select if this is either Authoritative, Internal Relay or External Relay.
  • Click Save.

Configure Default Frontend Receive Connector:

In the ECP click on Mail Flow -> receive connectors.

exsetup25

  • Click on Default Frontend <ServerName> and then click the Pencil next to the +
  • Go to the security tab as shown above and make sure “Anonymous Users” checkbox is selected.
  • Click on save.

Create Send Connector:

In the ECP click on Mail Flow -> send connectors.

exsetup26

  • Click on the + to add a new Send Connector.
  • Type in a descriptive name and then select the Type.
  • Click Next.

exsetup27

  • Select your Network settings, if you routing mail through a smarthost then click the + button.

exsetup28

  • Type in the smart host info and then click save.
  • After that click Next.

exsetup29

  • Specify the authentication as per your ISP and click Next.

exsetup30

  • Click on the + button to setup the Address Space.

exsetup31

  • Enter your FQDN and your Type.
  • Click Save.
  • Click Next.

exsetup32

  • Click on the + button to add in a Source server. When the window comes up select your exchange server, click the Add -> button and then click ok.
  • Click finish and you have now have a send connector setup.

CSR Creation:

http://www.digicert.com/csr-creation-microsoft-exchange-2013.htm 

SSL Installation:

http://www.digicert.com/ssl-certificate-installation-microsoft-exchange-2013.htm

Public Folder Mailbox Setup:

In the ECP click on Public Folders -> Public Folders Mailbox.

exsetup33

  • Click on the + button.
  • Enter in the name for the PF Mailbox.
  • Select an Organizational Unit by clicking the browse button.
  • Select a Mailbox Database by clicking the browse button

Public Folder Setup:

In the ECP click on Public Folders -> Public Folders

exsetup34

  • Click on the + button.
  • Type in a folder name.
  • Click the Save button.

Additional Tasks:

  • Create Distribution List.
  • Create Contacts.
  • Create Shared Mailbox.

Distribution list creation:

In the EAC Click on Recipients -> Groups

 
Add DL
  • Click on the + button and select Distribution group.

Add DL1

  • Type in the display Name
  • Type in the Alias
  • Click the browse button to add it to a specific OU.
  • Click the + button to add a owner.
  • Scroll down to add in more info (screen shot below)

Add DL2

  • click the + button to add in the members of this group.
  • Select your option regarding the approval of this Distribution Group.

You can also create a distribution list using the EMS:

  • New-DistributionGroup -Name “Managers” -OrganizationalUnit “contoso.com/Users” -SamAccountName “Managers” -Type “Distribution”

Contact creation:

In the EAC Click on Recipients -> Contacts

Add cont1

  • Click on the + button and select Mail Contact.

Add cont2

  • Type in the information and then click Save.

Shared Mailbox creation:

In the EAC Click on Recipients -> Shared

add shared mailbox1

  • Click on the + button.

add shared mailbox2

  • Enter in the Display Name and Alias.
  • Click browse to select an OU.
  • Click on the + button to grant Send As Permissions.
  • If you click the More Options button you can set the Mailbox Database where this mailbox should be housed.
  • You can also select a policy.
  • Once done click Save.

Monitoring Queues and DAG:

Open up the Exchange Management Shell.

To find the status of the email Queue type in the following command:

  • Get-Queue

This will give output the status, Message Count, DeliveryType and NextHopDomain.

You can also use Exchange Queue Viewer located in the Exchange Toolbox.

To check the DAG status type in the following command:

  • Get-MailboxDatabaseCopyStatus * (This will show all servers)
  • Get-MailboxDatabaseCopyStatus (without the * it will show the current server)

Create new User in Active Directory 2012/Exchange 2013/Lync 2013 with Powershell V3.2

I created a script from multiple Technet sources that will allow an individual to work quicker and login to less servers and consoles.

This script allows you to create a user in Active Directory, mailbox in Exchange 2013 and Enable the users Lync 2013 Account.

It also sets the users mobile and telephone number attributes in Active directory.

Requirements:

  • Exchange 2013 Management Tools
  • User Account that has access to AD, Exchange and Lync.
  • (If you dont want to install this you can enable the 2 lines of code to create a PSSession to Exchange)

The Read-Host command didnt work too well running it from the Exchange Management Shell or Windows PowerShell so I resorted to using the InputBoxDialog. I import an assembly to allow this function to work.

I have not tested this on Exchange 2010, Lync 2010 or any earlier version of Active Directory.

Change Log:

**V2 now adds the new user to a group that exists in AD**
**V3 now adds the new users Telephone Number in AD**
**V3.1 now adds the new users Mobile Number in AD**
**V3.2 now adds the new users Manager and Company in AD**

I have uploaded it to Technet, here is the address to download it:

http://gallery.technet.microsoft.com/Create-a-New-User-in-a21601c9

Hope it helps.

UPGRADE EXCHANGE 2013 SP1 to CU5

MSFT has now released CU5. If you want to read about this update you can look at the link below:

http://blogs.technet.com/b/exchange/archive/2014/05/27/released-exchange-server-2013-cumulative-update-5.aspx

Lets start. First I will put one of my Exchange Servers in Maintenance Mode. Best practice as I have seen if you don’t do this DAG copies give problems. Here are the 4 commands I will be running. You can make this a PS1 script but I like making sure each command has successfully completed. Start Maintenance Mode:

  • Set-MailboxServer <Server Name> -DatabaseCopyActivationDisabledAndMoveNow $True
  • Set-ServerComponentState –Identity <Server Name> –Component HubTransport –State Draining –Requester Maintenance
  • Suspend-ClusterNode –Name <Server Name>
  • Set-MailboxServer –Identity <Server Name>–DatabaseCopyAutoActivationPolicy Blocked

(**You need to open up the Exchange Management Shell as Administrator or point 3 will give you a permission error**)

Now we need to first prepare the Schema and AD before we can proceed with the installation.

From an elevated prompt you can run the following commands:

  • Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms
  • Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

Once both commands have run and finished you can now run the Exchange 2013 CU5 setup. It will check for any updates which you can skip and the proceed to the upgrade screen.

Now that the setup has completed we need to take the server out of maintenance mode to resume normal operation. We need to run 4 commands again to Stop Maintenance Mode:

(**Remember you need to run these commands as an administrator from an elevated Exchange Management Shell)

  • Set-MailboxServer –Identity <Server Name> –DatabaseCopyAutoActivationPolicy Unrestricted
  • Resume-ClusterNode –Name <Server Name>
  • Set-ServerComponentState –Identity <Server Name> –Component HubTransport –State Active –Requester Maintenance
  • Set-MailboxServer –Identity <Server Name> –DatabaseCopyActivationDisabledAndMoveNow $False

Now that everything is online you can check the DAG Status etc.

Hope it helps