Back to Blog

Building an Exchange LAB Environment: Provisioning Exchange Servers

Image of Andy Grogan
Andy Grogan
Microsoft Exchange Servers listing image

In this, Part 4 of this ENow blog series, I will take you through the provisioning of your Exchange Servers in Hyper-V, summarizing the install of Windows Server 2012 Data Centre (as we have covered the step by step install of Windows 2012 in the first part), and finally installing the prerequisites for Exchange 2013 on Windows Servers 2012.

In previous ENow blog posts, we've discussed several things:

  • The conceptual schematic of what our test lab domain will look like
  • Establishing the specifications for each of the virtual machines that we would be using in the Lab
  • How to provision the Domain Controller for the LAB in on Hyper-V server on Windows Server 2012
  • Building the Windows Server 2012 O/S for the domain controller
  • Installing Active Directory on the Domain Controller using a Powershell Script
  • Installing Active Directory Certificate Services on the domain controller

And now, let's discuss provisioning Exchange servers.

Provisioning your Exchange Servers

In part 1 of the series we took you through manually using the Hyper-V manager to provision the domain controller. In this part I would like to show you how you can use the Hyper-V module in Powershell to query settings in a CSV file and create your Virtual Machines using a very simple PowerShell script.

The script and CSV file:

The following is the simple script that I have written which takes input from a CSV file (more details on this later) and creates the Virtual Machines as per the configuration data from the source file.

Grogan4.1

The CSV file should contain the following column headings: VMName- Name of the Virtual Machine. VMPath- Physical path on your Server where the Virtual Machine configuration will live. VHDPathName- Physical path an file name of the primary system disk for your VM. VHDSize – Size of the system disk, this is represented in Bytes – therefore 100GB is 107374182400 bytes. ProcessorCount – The number of vCPU’s assigned to the Virtual Machine. VMMemory – The amount of RAM assigned to the Virtual Machine – this is in Bytes, therefore 5GB is 5368709120 in bytes. VSwitch – The name of the VSwitch that you wish the primary interface to use – in my lab this is called: RIO_PUBLIC_VSWITCH OSISOPath – The path on your Server to the Windows 2012 installation ISO Download: Hyper-V Provisioning Script

docs/Sample Source Grogan 4.1.docx (you'll need to convert this into a CSV File)

Running the Script

Like with all the scripts that have been provided in this series – you need to ensure that before you try to run them – you have the correct execution policy configured (RemoteSigned).

Copy the script and your CSV file to a location on your Hyper-V server, open a Powershell command prompt and use the following command line:

describe the image

The script will then go away and provision your machines.

Grogan4.3

If you then review the Hyper-V manager – you will see your new VM are now present:

Grogan4.4

If you check the properties of any one of the VMs you will see that they have been configured as per the settings in the CSV file.

describe the image

You are now in a position to Power the VM’s on and being the process of installing Windows Server 2012 Data Centre.

Installing Windows 2012 Data Centre Edition

In the first part of this series I did a detailed overview of installing Windows Server 2012 – therefore I will not be covering that again. Where you should pick the configuration up again in this post is after you have renamed the computer, configured the relevant IP settings and joined the machine to the art-test domain and installed relevant Windows Updates.

The first machine that we will build will be art-mbxcas-01 – which will be our first Mailbox / CAS and HT server.

What I will cover here is installing both the Operating System Pre-Requisites and supporting components required for a successful installation of Exchange 2013 on Windows Server 2012.

Required Operating System Components

On your Exchange Server – open a Powershell command prompt then enter in:

describe the image

Then Enter:

Grogan 4.7 resized 600

Then copy and paste the following code:

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

You will then need to restart the computer – you can do this by typing:

describe the image

Within the Powershell command window.

Required Supporting Software

In order to successfully install Exchange Server on the VM – you will need to install some supporting software which is required in order for it to function correctly.

You will need to download each of the following to a location on your Exchange VM:

1. Microsoft Unified Communications Managed API 4.0, Core Runtime 64-bit 

2. Microsoft Office 2010 Filter Pack 64 bit 

3. Microsoft Office 2010 Filter Pack SP1 64 bit 

You will then need to install them.

Microsoft Unified Communications Managed API 4.0, Core Runtime x64

As per Microsoft:

Unified Communications Managed API (UCMA) 4.0 is a managed-code platform that developers use to build applications that provide access to and control over Microsoft Enhanced Presence information, instant messaging, telephone and video calls, and audio/video conferencing.

Double click on the Setup installer for the MUCM API which will begin by showing you the following introduction screen.

Grogan4.9

You will then be presented with the following welcome screen which explains the actions that the installer intends to perform on your server. When you are ready click on the “Next” button.

Grogan4.10

Accept the licensing agreement by checking the “I have read and accept the license terms” then click on the “Install” button.

describe the image

The setup process will then install the required components on your server.

describe the image

Set will then complete – click on the “Finish” button.

describe the image

Installing the Microsoft Office Filter Pack with Service Pack 1

As per Microsoft:

The Microsoft Filter Pack is a single point-of-distribution for Office IFilters. IFilters are components that allow search services to index content of specific file types, letting you search for content in those files. They are intended for use with Microsoft Search Services (SharePoint, SQL, Exchange, Windows Search).

Install this product if you want to search for content in the file types listed below.

The Filter Pack includes:

Legacy Office Filter (97-2003; .doc, .ppt, .xls)

Metro Office Filter (2007; .docx, .pptx, .xlsx)

Zip Filter

OneNote filter

Visio Filter

Publisher Filter

Open Document Format Filter

Double click on the Microsoft Office Filter pack installer – you will be presented with the following welcome screen, when you are ready click on the “Next” button.

describe the image

Accept the licensing agreement by checking the “I accept the terms in the licensing agreement” check box. When you are done click on the “Next” button.

describe the image

The setup process will then install the required files on your Exchange Server.

describe the image

When setup is completed – you will be presented with the following dialog box – click on the “OK” button to finish.

Grogan4.17

You will then need to install Service Pack 1 for the Microsoft Office filter pack. Double click on the Service Pack 1 setup file. You will then be presented with the introduction screen – click on the “Continue” button when ready.

describe the image

Setup of Service Pack 1 for the Office 2.0 filter packs is very quick – when it has been completed you will be presented with the following dialog box – click on the “ OK” button when setup has completed.

Grogan4.19

And then Repeat

You will now need to repeat the above setups on the remaining two servers: art-mbxcas-02 and art-mbx-01

 


Windows_servercore

Exchange 2019 - Windows Server Core

Image of Nathan O'Bryan MCSM
Nathan O'Bryan MCSM

The current version of Exchange can, and in most cases should, be installed on Windows Server Core....

Read more
Active Directory flowchart

Exchange 2013 Lab Tutorial: Part 1 - AD Setup

Image of Andy Grogan
Andy Grogan

Times change, people change – and as well all know, technology changes as well. The last part of...

Read more