I have been messing around with the installation of Exchange 2010 RC on Windows 2008 R2. I chose to go with Windows 2008 RC since it already has more of the things needed to install Exchange like the right version of PowerShell and the .NET framework. To make my lab installs go faster I have been creating PowerShell scripts to automatic everything from the installation of the required roles and features to the installation of Exchange 2010 as well. Below you will find some snippets from some of the scripts. Of course the standard disclaimer applies.
The header:
| # ----- |
The installation of the link above is so that the indexer can index certain files.
The following is needed for all Exchange installs since we are not using the old way (Windows 2008) of adding roles and features and are using PowerShell instead.
| #Since we are not going to use ServerManagerCmd for this Import-module servermanager |
If this is the first time you have run Exchange 2010 setup, you will need to prepare the AD. Before you can do that you will need to install the AD tools. After running that a reboot may be necessary. I have commented it out as I may want to see the results of the install.
| #-----------START PREPARE AD NEEDS------------------------------------ #For a server that you have not done any Exchange 2010 prep add-WindowsFeature RSAT-ADDS #Since this will probably require a reboot, you would need to run the #following: #-----------END PREPARE AD NEEDS------------------------------------ |
The next part does the AD preparation.
| #-----------START PREPARE AD------------------------------------ #After the reboot you can run the following if you have a single d: #-----------END PREPARE AD------------------------------------ |
If your forest and domain is all prepared then you are ready to install the Hub and CAS role. Since I wanted to get a DAG up and running I put these two roles on their own machine and put the mailbox role on two other machines. The following will install the Features and Roles needed.
| #------------START HUB and CAS INSTALL NEEDS-------------------------- #To install a Hub Transport Role on a CAS server, we would need to install #the following components: add-WindowsFeature Net-Framework,Web-Server,WEB-ISAPI-Ext,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Basic-Auth,Web-Digest-Auth,Web-Windows-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-over-HTTP-Proxy #The following service must be set to automatic #------------------END HUB and CAS INSTALL NEEDS----------------------------- |
Now that the server has what it needs, let’s install the Exchange portion for the Hub and CAS.
| #------------START HUB and CAS INSTALL -------------------------- #Since I have an ISO of the d: #A restart will be required. Uncomment below if you want this to happen #automatically. #------------END HUB and CAS INSTALL -------------------------- |
Now that we have a Hub and CAS role installed, let’s get some mailbox server installed on a different server.
| #------------START MAILBOX ONLY INSTALL NEEDS-------------------------- #To install a Mailbox server, we would need to install the following #components: #add-WindowsFeature Net-Framework,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Basic-Auth,Web-Windows-Auth #------------END MAILBOX ONLY INSTALL NEEDS-------------------------- |
Now we are ready to install the Exchange portion of the mailbox role install.
| #------------START MAILBOX ONLY INSTALL -------------------------- #Since I have an ISO of the d: #A restart will be required. Uncomment below if you want this to happen #automatically. #------------END MAILBOX ONLY INSTALL -------------------------- |
Hopefully this is useful to you.