Wednesday, May 1, 2013

Install Exchange Server 2010 in Windows Server 2008 R2


Install Exchange Server 2010 in Windows Server 2008 R2

Exchange server is one of the popular messaging platform in enterprise. Today I will show you steps to install Exchange server 2010 in Windows Server 2008 R2. There are some prerequisites that must be fulfilled to install the Exchange server successfully. The prerequisites are different for different Windows Server versions and service packs. I will be showing in the test environment in Server 2008 R2. The diagram below shows our network scenario. We don’t have any existing Exchange instance. So we will install Exchange server in fresh environment.

Install Exchange Server 2010 in Windows Server 2008 R2

Install Exchange Server 2010 in Windows Server 2008 R2

Installation prerequisites

  1. The forest functional level of the DC must be at least Server 2003 or later.
  2. Active Directory Schema master must be running in Server 2003 or later.
  3. Exchange Server must be member of DC but not Edge Transport Server.
  4. The Domain Controller must be a Global Catalog server in this (local) domain.
  5. Install .Net Framework 3.5 from Server Manager Add New Features wizard in MBG-Mail Server.
  6. Download and install 2007 Office System Converter: Microsoft Filter Pack in MBG-Mail.
Now, insert Exchange server installation disc or ISO Image into the drive. Then open command prompt from start menu as Administrator. Move your root directory to drive where Exchange media resides. Mine is in drive D,
C:\Users\Administrators> D: [Enter]. (Moves the prompt to drive D:)
The first step is to extend the existing Active Directory Schema. This requires installation of RSAT-ADDS tool. Open PowerShell and hit the following command to install RSAT-ADDS.
Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS
Now hit the following command in command prompt to prepare active directory for installing Exchange Server. 
D:\> setup /prepareschema [Enter]
The second step is to prepare Active Directory for Exchange installation. Type your organization name in Organization Name switch. Hit the following command in command prompt.
D:\> setup /prepareAD /OrganizationName:MustBeGeek [Enter]
Now to prepare this domain for Exchange server installation, hit the following commands in command prompt.
D:\> setup /PrepareDomain [Enter]
Now open Windows Powershell and import Server Manager Module,
C:\> Import-Module ServerManager
Run the following command. This command will start mode for the Net. Tcp port sharing service to automatic.
C:\> Set-Service NetTcpPortSharing -StartupType Automatic
Now, we will install typical Exchange server that includes, Hub Transport, Client Access and Mailbox. These roles are typical if you are installing only one Exchange server for small environment. Log on to MBG-Mail server with domain administrator account.
Now copy and paste the following command in PowerShell. Simply copy the command and right-click the mouse button to paste on PowerShell Window. The CTRL+C and CTRL+V doesn’t work inside PowerShell. These command will install all the prerequisites in this server. Different set of commands are available for different Windows Server versions and different Exchange requirement.
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy -Restart
After completing the installation, the server restarts. After starting the server open the Exchange setup from installation media. You will then see following screen.
Install Exchange Server 2010 in Windows Server 2008 R2
As step 1 and step 2 is already completed. Now click the language to install. I will click to install only languages from the DVD. Then click step 4 to install Microsoft Exchange. You will soon see the following box,
Install Exchange Server 2010 in Windows Server 2008 R2
Read the introduction and click Next button. Then choose to accept the license agreement and click Next button. Choose No for error reporting to Microsoft and click Next button. Choose the installation type as Typical.
Install Exchange Server 2010 in Windows Server 2008 R2
Then click Next button. Type the organization name and click Next.
exchange organization
Select No for Exchange client settings,
exchange client setting
In configure client access server external domain option. Leave the defaults and click Next button. Choose I do not want to take part and click Next button. The installation will now go through readiness checks. If there are some errors then it will notify you. Go back and correct those errors if any. If every checks succeeds then you will see similar screen,
Install Exchange Server 2010 in Windows Server 2008 R2
Click Install button to begin installing Exchange server. After installation completes you may now want to configure Exchange server to send and receive mails.