Exchange2010安装各角色先决条件的Powershell

作者:李珣 的BLOG出处:博客2012-07-24 16:09

 


  Exchange 2010对活动目录的要求:

  部署exchange 2010可参考的资源:

  http://technet.microsoft.com/zh-cn/library/dd351084.aspx

  1. Schema master、domain control、GC(global catalog server) 都要求至少windows 2003sp1或更高(windows 2008 or R2)

  2. Exchange 2010各个角色对内存的需求:

  详细参考:http://technet.microsoft.com/en-us/library/dd346700.aspx

  3. Exchange 2010安装先决条件

  参考:http://technet.microsoft.com/zh-cn/library/bb691354.aspx

  针对R2版本:先决条件参考下面URL:

  http://technet.microsoft.com/zh-cn/library/bb691354.aspx#WS08R2

  开始安装先决条件所需的包:

  2007 Office system 转换器:Microsoft 筛选包

  http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=60c92a37-719c-4077-b5c6-cac34f4227cc

  1. 开启powershell控制台:执行命令:Import-Module ServerManager

  2. 然后根据所装角色,添加相应的功能!

  1) 安装CAS,HUB,MB角色时:

  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

  2) 安装CAS,HUB,MB,UM角色时:

  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,Desktop-Experience -Restart

  3) 安装CAS,HUB角色时

  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

  4) 安装HUB,MB角色时

  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

  5) 安装CAS,MB角色时

  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

  6) 安装CAS角色时

  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

  7) 安装HUB或者MB角色时

  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

  8) 安装UM角色时

  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,Desktop-Experience -Restart

  9) 安装EDGE角色时

  Import-Module ServerManager

  Add-WindowsFeature NET-Framework,RSAT-ADDS,ADLDS -Restart

  c. 安装完上述特×××后,设置Net.Tcp Port Sharing Service服务启动类型为自动(透过命令或直接控制台修改都是OK的, (Set-Service NetTcpPortSharing -StartupType Automatic)


安装Exchange 2010 R2的一系列先决条件(必看)

http://blog.sina.com.cn/s/blog_60a4fcef01018czo.html

Exchange 2010安装各角色先决条件的Powershell
http://lixun.blog.51cto.com/4198640/922033

现在powershell里面运行这个
 安装必备组件
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


Exchange 2010安装,以下是安装Exchange 2010前必须要做的准备工作
 安装 .NET Framework 3.5 SP1
安装 RSAT-ADDS(AD DS 管理单元和命令行工具)
 安装 IIS 7.5 以及 IIS6 元数据兼容性(IIS6 Metabase)组件
 安装 Microsoft Filter Pack(筛选包)
 配置 Net.TCP Port Share Service 为自启动模式
 安装 桌面体验(Desktop Experience,注意:该步骤只在选择“统一消息角色”时使用)

1、安装 .NET Framework 3.5 SP1
 Add-WindowsFeature NET-Framework

 2、安装 RAST-ADDS(AD DS 管理单元和命令行工具)
Add-WindowsFeature RSAT-ADDS

 3、安装 IIS 7.5 以及 IIS6 元数据兼容性(IIS6 Metabase)组件
Add-WindowsFeature Web-Server
 Add-WindowsFeature Web-Basic-Auth
 Add-WindowsFeature Web-Metabase
在1、2步骤完成后,该步骤只需要安装这三个功能组件即可,如 ASP.Net 等组件功能,会在 Exchange 2010 安装后自动启用。

4、安装 Microsoft Filter Pack(筛选包)
 从http://www.microsoft.com/downloa ... p;DisplayLang=zh-cn 下载 64-bit 版的 FilterPack,文件名为“FilterPackx64.exe”,使用“/quiet”参数来实现自动安装,命令行如下:
FilterPackx64.exe /quiet

 5、配置 Net.TCP Port Share Service 为自启动模式
Set-Service "NetTcpPortSharing" -StartupType Automatic
 Start-Service "NetTcpPortSharing"

 6、安装 桌面体验(Desktop Experience,注意:该步骤只在选择“统一消息角色”时使用)
Add-WindowsFeature Desktop-Experience


你还可以使用Powershell来执行exchange 2010安装前的准备工作,具体链接如下:
http://technet.microsoft.com/zh-cn/ff729451.aspx    

使用 PowerShell 执行 Exchange 2010 安装前准备工作
https://technet.microsoft.com/zh-cn/ff729451.aspx

其实一旦对相关命令掌握之后,就完全可以自己编写一整套的批处理脚本实现自动化或少量接触安装。注意:本例中IIS只安装了基本验证模块,因为默认 Exchange 2010 的 OWA 使用表单验证。日志撰写仓促可能会有遗漏或不足,欢迎指正,相互交流!

补充:Windows Server 2008 R2 默认禁止 PowerShell 执行脚本,所以建议先执行:


set-executionpolicy remotesigned


如果不使用 Windows PowerShell Modules 来执行准备工作,那么务必要在标准的 Windows PowerShell 环境中先执行:


import-module servermanager

相关信息可参考我之前的日志:《  正确使用 Windows PowerShell 执行服务器管理器操作》。

=========================================================

在 Windows Server 2012 R2 或 Windows Server 2012 计算机上,运行下列命令:

Install-WindowsFeature RSAT-ADDS

Exchange 2010 图文安装详解

Exchange2010安装笔记(主要步骤和问题汇总)

Exchange Server 2010升级到SP3