Exchange 2010 Installing from Command Line
I am installing Exchange 2010 on a windows 2008 R2 Standard server.
First you will need to install the OS on the Server.
When I install the OS I install it to a partition approx. 50GB in size. I also create a Data partition for Exchange. Once the OS is installed run windows Update and get all available updates for the system.
Now we have a 2008R2 server with the following configuration
C: drive (OS) - 50GB
G: drive (Exchange) – 400GB or whatever you have.
I will then turn off the Internet Explorer Enhanced Security Configuration for Administrators.
Go to the Server Manager, Scroll down to the Security Information
You can set this back when you are done with the installation.
Next you will have to install Active Directory
Go to a command Prompt and type DCPROMO
This will start the wizard to install the AD.
Once this is completed and you have rebooted you can start your exchange install.
We will need to create a couple of Directories that we will use during the install
G:\Exchange\Database\database1
G:\Exchange\Logs\database1
Insert the DVD in the Drvie and then open a command prompt
In this case the DVD is Drive D:
At the commaind prompt you will need to change to the Scripts directory
Then type the following command to install all of the Windows required components.
D:\Scripts>servermanagercmd –ip exchange-typical.xml
After the components are install you will be required to reboot the server.
On servers that will host the Hub Transport or Mailbox server role, Microsoft Filter Pack is required to be installed. You can download the Microsoft Filter Pack from the following link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=60c92a37-719c-4077-b5c6-cac34f4227cc&displaylang=en
Microsoft Filter Pack will install and register IFilters with the Windows Indexing Service. These IFilters are used by Microsoft Search products to index the contents of specific document formats such as (.docx, .docm, .pptx, .pptm, .xlsx, .xlsm … etc).
Now double click on Microsoft Filter Pack file, welcome screen will appear, click next
Accept the license agreement and then click next:
Installation will start
Installation finished, click OK:
Now that we have all the requirements to install Exchange let go ahead and start the installation from the command line
From the command prompt type the following
D:\>Setup /pl
Let this process finish
Then type
D:\> setup /prepareAD /organizationname: “YourOrg” – Without Quotes
Let this process finish
Then type
D:\> setup /preparedomain
Let this process finish
We will have to change the Startup of a service to have the install work
Go to the Administrative Tools\Services
Edit the NetTcpPortSharing service to be automatic startup. Close services
We have a number of available switches when running setup from the command line. I am going to install the CAS,HUB,Tools and MBX role, name the Org, and configure my database names and location
Type the following command
Setup /m:install /r:c,h,m,t /OrganizationName:YourOrg /CustomerFeedbackEnabled:true /Mdbname:Exchange_db1 /dbfilepath:G:\Exchange\Database\database1\Exchange_db1.edb /LogfolderPath:G:\Exchange\Logs\Exchange_db1_logs
After the install finishes you will have to reboot.
Exchange should be installed and ready for final configuration.






