Search This Blog

Wednesday, February 16, 2011

Exchange 2010 Prerequisites

I have created yet another script that installs the Exchange 2010 Prerequisites on Windows Server 2008 R2.

[Code]
#JUDG Therealshrimp.blogspot.com 2011#

#This script installs the Exchange prerequisites according to roll#



Write-host "This script will install the Exchange 2010 prerequisites according to the role(s) you sellect." -ForegroundColor Blue -BackgroundColor White

Write-Host "********************************************************************************************"

#----------------------------------------------------------------------------------------------------------#

# Patches Required for Exchange 2010 on Windows Server 2008 R2 #

#----------------------------------------------------------------------------------------------------------#

Write-Host "This script Presumes that following prerequisites have been met:



The following hotfixes are required for the Client Access server for Windows Server 2008 R2:



* Install the update described in Knowledge Base article 979099, An update is available to remove the application manifest expiry feature from AD RMS clients. Without this update, the AD RMS features may stop working.

* Install the hotfix described in Knowledge Base article 982867, WCF services that are hosted by computers together with a NLB fail in .NET Framework 3.5 SP1. For more information, see these MSDN Code Gallery pages:

o For additional background information, see KB982867 - WCF: Enable WebHeader settings on the RST/SCT.

o For the available downloads, see KB982867 - WCF: Enable WebHeader settings on the RST/SCT.

* Install the update described in Knowledge Base article 979744, A .NET Framework 2.0-based Multi-AppDomain application stops responding when you run the application.

* Install the update described in Knowledge Base article 983440, An ASP.NET 2.0 hotfix rollup package is available for Windows 7 and for Windows Server 2008 R2. For more information, see these MSDN Code Gallery pages:

o For additional background information, see KB983440 - Win7 rollup package (PR for QFE 810219).

o For the available downloads, see KB983440 - Win7 rollup package (PR for QFE 810219).

* Install the update described in Knowledge Base article 977020, FIX: An application that is based on the Microsoft .NET Framework 2.0 Service Pack 2 and that invokes a Web service call asynchronously throws an exception on a computer that is running Windows 7." -foregroundcolor Yellow -backgroundcolor Blue

Write-Host "************************************************************************************************"

#-----------------------------------------------------------------------------------------------------------#

# Roles selection #

#-----------------------------------------------------------------------------------------------------------#

Write-host "Please select the role(s) you wish to install"

Write-Host "1: Base (Cas, Hub, Mailbox)"

Write-Host "2: Client Access Server"

Write-host "3: Hub Transport Server"

Write-host "4: Mailbox Server"

Write-host "5: Hub Transport/Client Access Server"

#------------------------------------------------------------------------------------------------------------#

# Function #

#------------------------------------------------------------------------------------------------------------#

function ProcessAnswer1

{

Import-Module ServerManager

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,RPC-Over-HTTP-Proxy -Restart

}

function ProcessAnswer2

{

Import-Module ServerManager

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,RPC-Over-HTTP-Proxy -Restart

}

function ProcessAnswer3

{

Import-Module ServerManager

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 -Restart

}

function ProcessAnswer4

{

Import-Module ServerManager

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 -Restart

}

function ProcessAnswer5

{

Import-Module ServerManager

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,RPC-Over-HTTP-Proxy -Restart

}

$Choise = read-host "Make a sellection between 1 and 5"
& "ProcessAnswer$Choise"
[/Code]

4 comments:

  1. Jurgen,

    You could also refer to the XML-files that MSFT ships on the installation media to install the required roles and features, reducing the code in your script (you'd create a dependency on the xml though...)

    e.g.

    ServerManagerCmd -ip Exchange-Role.xml

    in stead of:
    Add-WindowsFeature....

    ReplyDelete
  2. I wanted to avoid the use of servermanagercmd as it is deprecated in Windows Server 2008 R2.

    ReplyDelete
  3. Jurgen,

    I've used your script as a basis and added some extra functionalities like error handling etc.

    http://www.vanhorenbeeck.be/?p=66

    Grts!

    Michael

    ReplyDelete