使用无人参与模式安装 Exchange 2013Install Exchange 2013 using unattended mode

适用于: Exchange Server 2013Applies to: Exchange Server 2013

若要执行无人参与安装,必须从命令提示符处安装 Microsoft Exchange Server 2013。To perform an unattended setup, you must install Microsoft Exchange Server 2013 from the command prompt. 有关规划和部署 Exchange 2013 的详细信息,请参阅规划和部署For more information about planning and deploying Exchange 2013, see Planning and deployment.

我们建议在您组织的内部 Active Directory 林以外的外围网络中安装边缘传输角色。虽然您可以在联合域的计算机上安装边缘传输服务角色,但是这样做仅可启用 Windows 功能和设置的域管理。边缘传输角色本身不使用 Active Directory。相反,它使用 Active Directory 轻型目录服务 (AD LDS) Windows 功能存储配置和收件人信息。有关边缘传输角色的详细信息,请参阅边缘传输服务器We recommend that the Edge Transport role be installed in a perimeter network outside of your organization's internal Active Directory forest. While you can install the Edge Transport server role on a domain-joined computer, doing so will only enable domain management of Windows features and settings. The Edge Transport role itself doesn't use Active Directory. Instead, it uses the Active Directory Lightweight Directory Services (AD LDS) Windows feature to store configuration and recipient information. For more information about the Edge Transport role, see Edge Transport servers.

提示

你是否曾听说过 Exchange Server 部署助理?它是一款免费的联机工具,它将询问您一些问题并专门为您创建自定义部署检查表,以帮助您在组织中快速部署 Exchange 2013。若您想要了解关于它的详细信息,请转到 Exchange Server 部署助理Have you heard about the Exchange Server Deployment Assistant? It's a free online tool that helps you quickly deploy Exchange 2013 in your organization by asking you a few questions and creating a customized deployment checklist just for you. If you want to learn more about it, go to Exchange Server Deployment Assistant.

备注

在运行 Exchange 2013 的计算机上安装任何服务器角色后,不能使用 Exchange 2013 安装向导将任何其他服务器角色添加到此计算机。After you install any server roles on a computer running Exchange 2013, you can't use the Exchange 2013 Setup wizard to add any additional server roles to this computer. 如果要向计算机添加更多服务器角色,则必须使用 "控制面板" 中的 "添加或删除程序",或使用命令提示符窗口中的 Setup.exe。If you want to add more server roles to a computer, you must either use Add or Remove Programs from Control Panel or use Setup.exe from a Command Prompt window.
边缘传输角色不能与邮箱或客户端访问服务器角色安装在同一台计算机上。The Edge Transport role can't be installed on the same computer as the Mailbox or Client Access server roles.

有关安装后要完成的任务的信息,请参阅Exchange 2013 安装后任务For information about tasks to complete after installation, see Exchange 2013 post-Installation tasks.

开始前,有必要了解什么?What do you need to know before you begin?

以下信息适用于所有 Exchange 2013 服务器角色。The following information applies to all Exchange 2013 server roles.

  • 请确保已阅读发行说明,然后再安装 Exchange 2013。Make sure you've read the release notes prior to installing Exchange 2013. 有关详细信息,请参阅Exchange 2013 发行说明For more information, see Release notes for Exchange 2013.

  • 安装了 Exchange 2013 on 的计算机必须具有受支持的操作系统(如 Windows Server 2008 R2 Service Pack 1 (SP1)、Windows Server 2012 R2 或 Windows Server 2012)、具有足够的磁盘空间,并且满足其他要求。The computer you install Exchange 2013 on must have a supported operating system (such as Windows Server 2008 R2 with Service Pack 1 (SP1), Windows Server 2012 R2, or Windows Server 2012), have enough disk space, and satisfy other requirements. 有关系统要求的信息,请参阅Exchange 2013 系统要求For information about system requirements, see Exchange 2013 system requirements.

  • 若要运行 Exchange 2013 安装程序,您必须安装 Microsoft .NET Framework 4.5、Windows Management Framework 和其他所需的软件。To run Exchange 2013 setup, you must install Microsoft .NET Framework 4.5, Windows Management Framework, and other required software. 若要了解所有服务器角色的先决条件,请参阅Exchange 2013 先决条件To understand the prerequisites for all server roles, see Exchange 2013 prerequisites.

  • 若要了解可能适用于此主题中过程的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

警告

在服务器上安装 Exchange 之后,不得更改服务器名称。不支持在安装了 Exchange 服务器角色之后重命名服务器。After you install Exchange on a server, you must not change the server name. Renaming a server after you have installed an Exchange server role is not supported.

以下信息适用于 Exchange 2013 邮箱和客户端访问服务器角色。The following information applies to the Exchange 2013 Mailbox and Client Access server roles.

  • 估计完成时间:60 分钟Estimated time to complete: 60 minutes

  • 每个组织在 Active Directory 林中都需要至少一台客户端访问服务器和一台邮箱服务器。另外,每个包含邮箱服务器的 Active Directory 站点还必须包含至少一台客户端访问服务器。如果您要分隔服务器角色,我们建议您先安装邮箱服务器角色。Each organization requires at a minimum one Client Access server and one Mailbox server in the Active Directory forest. Additionally, each Active Directory site that contains a Mailbox server must also contain at least one Client Access server. If you're separating your server roles, we recommend installing the Mailbox server role first.

  • 您在其上安装 Exchange 2013 的计算机必须是 Active Directory 域的成员。The computer you install Exchange 2013 on must be a member of an Active Directory domain.

  • 如果以前未准备好 Active Directory 架构,则必须确保您使用的帐户是架构管理员组中的委派成员身份。You must ensure the account you use is delegated membership in the Schema Admins group if you haven't previously prepared the Active Directory schema. 如果要在组织中安装第一个 Exchange 2013 服务器,您使用的帐户必须具有 Enterprise Admins 组中的成员身份。If you're installing the first Exchange 2013 server in the organization, the account you use must have membership in the Enterprise Admins group. 如果您已准备好架构,但未在组织中安装第一台 Exchange 2013 服务器,则您使用的帐户必须是 Exchange 2013 组织管理角色组的成员。If you've already prepared the schema and aren't installing the first Exchange 2013 server in the organization, the account you use must be a member of the Exchange 2013 Organization Management management role group.

    作为委派安装角色组成员的管理员可以部署组织管理角色组成员先前已设置的 Exchange 2013 服务器。Administrators who are members of the Delegated Setup role group can deploy Exchange 2013 servers that have been previously provisioned by a member of the Organization Management role group.

以下信息适用于 Exchange 2013 边缘传输服务器角色。The following information applies to the Exchange 2013 Edge Transport server role.

  • 预计完成时间:40 分钟Estimated time to complete: 40 minutes

  • 边缘传输角色可与 Exchange 2013 SP1 或更高版本一起使用。The Edge Transport role is available with Exchange 2013 SP1 or later.

  • 您需要在计算机上配置主 DNS 后缀。You need to configure the primary DNS suffix on the computer. 例如,如果您的计算机的完全限定域名为 edge.contoso.com,计算机的 DNS 后缀是 contoso.com。For example, if the fully qualified domain name of your computer is edge.contoso.com, the DNS suffix for the computer is contoso.com. 有关详细信息,请参阅PRIMARY DNS 后缀缺失For more information, see Primary DNS Suffix is missing.

  • Exchange 2007 和 Exchange 2010 集线器传输服务器需要更新,然后才能在它们和 Exchange 2013 边缘传输服务器之间创建 EdgeSync 订阅。Exchange 2007 and Exchange 2010 Hub Transport servers need an update before you can create an EdgeSync Subscription between them and an Exchange 2013 Edge Transport server. 如果您不安装此更新,EdgeSync 订阅将不会正常工作。If you don't install this update, the EdgeSync Subscription won't work correctly. 有关详细信息,请参阅Exchange 2013 系统要求中的 "支持的共存方案" 一节。For more information, see the "Supported coexistence scenarios" section in Exchange 2013 system requirements.

  • 确保您使用的帐户是您正在安装边缘传输角色的计算机上本地管理员组中的成员。Make sure the account you use is a member of the local Administrators group on the computer you're installing the Edge Transport role.

使用 Setup.exe 在无人参与模式下安装 Exchange 2013Use Setup.exe to install Exchange 2013 in unattended mode

备注

若要下载最新版本的 Exchange 2013,请参阅exchange 2013 更新To download the latest version of Exchange 2013, see Updates for Exchange 2013.

  1. 登录到要在其上安装 Exchange 2013 的计算机。Log on to the computer on which you want to install Exchange 2013.

  2. 导航到 Exchange 2013 安装文件的网络位置。Navigate to the network location of the Exchange 2013 installation files.

  3. 在命令提示符下,运行组织适用的命令。At the command prompt, run the applicable command for your organization.

    重要

    如果启用了用户访问控制(UAC),则必须 Setup.exe 从提升的命令提示符运行。If you have User Access Control (UAC) enabled, you must run Setup.exe from an elevated command prompt.

    Setup.exe [/Mode:<setup mode>] [/IAcceptExchangeServerLicenseTerms]
    [/Roles:<server roles to install>] [/InstallWindowsComponents]
    [/OrganizationName:<name for the new Exchange organization>]
    [/TargetDir:<target directory>] [/SourceDir:<source directory>]
    [/UpdatesDir:<directory from which to install updates>]
    [/DomainController:<FQDN of domain controller>] [/DisableAMFiltering]
    [/AnswerFile:<filename>] [/DoNotStartTransport]
    [/EnableErrorReporting] [/CustomerFeedbackEnabled:<True | False>]
    [/AddUmLanguagePack:<UM language pack name>]
    [/RemoveUmLanguagePack:<UM language pack name>]
    [/NewProvisionedServer:<server>] [/RemoveProvisionedServer:<server>]
    [/MdbName:<mailbox database name>] [/DbFilePath:<Edb file path>]
    [/LogFolderPath:<log folder path>] [/ActiveDirectorySplitPermissions:<True | False>]
    [/TenantOrganizationConfig:<path>]
    
  4. 安装程序在本地将安装文件复制到要安装 Exchange 2013 的计算机。Setup copies the setup files locally to the computer on which you're installing Exchange 2013.

  5. 安装程序检查先决条件,包括要安装的服务器角色所有的特定先决条件。Setup checks the prerequisites, including all prerequisites specific to the server roles that you're installing. 如果未能满足所有先决条件,则安装将失败并返回说明失败原因的错误消息。If you haven't met all the prerequisites, Setup fails and returns an error message that explains the reason for the failure. 如果你已满足所有先决条件,安装程序将安装 Exchange 2013。If you've met all the prerequisites, Setup installs Exchange 2013.

  6. 在 Exchange 2013 完成后重新启动计算机。Restart the computer after Exchange 2013 has completed.

  7. 通过执行Exchange 2013 安装后任务中提供的任务完成部署。Complete your deployment by performing the tasks provided in Exchange 2013 post-Installation tasks.

示例Examples

下面是使用 Setup.exe 的示例:The following are examples of using Setup.exe:

  • Setup.exe/mode: Install/role: ClientAccess,邮箱/OrganizationName:为 myorg/IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /role:ClientAccess,Mailbox /OrganizationName:MyOrg /IAcceptExchangeServerLicenseTerms

    此命令在 Active Directory 中创建一个名为为 myorg 的 Exchange 2013 组织,安装客户端访问服务器角色、邮箱服务器角色和管理工具,还接受 Exchange 2013 许可条款。This command creates an Exchange 2013 organization in Active Directory called MyOrg, installs the Client Access server role, Mailbox server role, and the management tools and also accepts the Exchange 2013 licensing terms.

  • Setup.exe/mode: Install/role: ClientAccess,邮箱/TargetDir: "C: \ Exchange Server"/IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /role:ClientAccess,Mailbox /TargetDir:"C:\Exchange Server" /IAcceptExchangeServerLicenseTerms

    此命令将客户端访问服务器角色、邮箱服务器角色和管理工具安装到 "C: \ Exchange server" 目录中。This command installs the Client Access server role, the Mailbox server role, and the management tools to the "C:\Exchange Server" directory. 此命令假定已准备好 Exchange 2013 组织。This command assumes an Exchange 2013 organization has already been prepared.

  • Setup.exe/mode: Install/r: CA、MB/IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /r:CA,MB /IAcceptExchangeServerLicenseTerms

    此命令将客户端访问服务器角色、邮箱服务器角色和管理工具安装到默认安装位置。This command installs the Client Access server role, the Mailbox server role, and the management tools to the default installation location.

  • Setup.exe /mode:Install /r:EdgeTransport /IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /r:EdgeTransport /IAcceptExchangeServerLicenseTerms

    此命令将边缘传输服务器角色和管理工具安装到默认安装位置。This command installs the Edge Transport server role and the management tools to the default installation location.

  • Setup.exe /mode:Install /r:ET /IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /r:ET /IAcceptExchangeServerLicenseTerms

    此命令将边缘传输服务器角色和管理工具安装到默认安装位置。This command installs the Edge Transport server role and the management tools to the default installation location.

  • Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTermsSetup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms

    此命令从服务器中完全删除 Exchange 2013,并从 Active Directory 中删除此服务器的 Exchange 配置。This command completely removes Exchange 2013 from the server and removes this server's Exchange configuration from Active Directory.

  • Setup.exe /PrepareAD /on:"My Org" /IAcceptExchangeServerLicenseTermsSetup.exe /PrepareAD /on:"My Org" /IAcceptExchangeServerLicenseTerms

    此命令创建名为 My Org 的 Exchange 组织,并为 Exchange 2013 准备 Active Directory。This command creates an Exchange organization called My Org and prepares Active Directory for Exchange 2013.

  • C: \ set-exchangeserver \ bin \Setup.exe/m: Install/R: ClientAccess/SourceDir: d: \ amd64/IAcceptExchangeServerLicenseTermsC:\ExchangeServer\bin\Setup.exe /m:Install /r:ClientAccess /SourceDir:d:\amd64 /IAcceptExchangeServerLicenseTerms

    此命令将客户端访问服务器角色添加到现有的 Exchange 2013 服务器,使用 D: \ amd64 作为源目录。This command adds the Client Access server role to an existing Exchange 2013 server using D:\amd64 as the source directory.

  • Setup.exe/role: ClientAccess,邮箱/UpdatesDir: "C: \ Set-exchangeserver \ 新修补程序"/IAcceptExchangeServerLicenseTermsSetup.exe /role:ClientAccess,Mailbox /UpdatesDir:"C:\ExchangeServer\New Patches" /IAcceptExchangeServerLicenseTerms

    此命令使用来自指定目录的修补程序更新 ExchangeServer.msi,然后安装客户端访问服务器角色、邮箱服务器角色和管理工具。This command updates ExchangeServer.msi with patches from the specified directory, and then installs the Client Access server role, Mailbox server role, and the management tools. 如果此目录中包含语言包套装,则还会安装该语言包。If a language pack bundle is included in this directory, the language pack is also installed.

  • Setup.exe/mode: Install/role: ClientAccess,邮箱/DomainController: DC01/IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /role:ClientAccess,Mailbox /DomainController:DC01 /IAcceptExchangeServerLicenseTerms

    此命令使用域控制器 DC01 在安装客户端访问服务器角色、邮箱服务器角色和管理工具时对 Active Directory 进行查询和更改。This command uses the domain controller DC01 to query and make changes to Active Directory while installing the Client Access server role, Mailbox server role, and the management tools.

  • Setup.exe/mode: Install/role: ClientAccess/AnswerFile: c: \ExchangeConfig.txt/IAcceptExchangeServerLicenseTermsSetup.exe /mode:Install /role:ClientAccess /AnswerFile:c:\ExchangeConfig.txt /IAcceptExchangeServerLicenseTerms

    此命令通过使用 ExchangeConfig.txt 文件中的设置来安装客户端访问服务器角色。This command installs the Client Access server role by using the settings in the ExchangeConfig.txt file.

  • Setup.exe /rprs:Exchange03 /IAcceptExchangeServerLicenseTermsSetup.exe /rprs:Exchange03 /IAcceptExchangeServerLicenseTerms

    此命令从 Active Directory 删除对象 Exchange03。This command removes the object Exchange03 from Active Directory.

  • Setup.exe /AddUmLanguagePack:ko-KR /IAcceptExchangeServerLicenseTermsSetup.exe /AddUmLanguagePack:ko-KR /IAcceptExchangeServerLicenseTerms

    此命令将安装来自% ExchangeSourceDir% \ ServerRoles UnifiedMessaging 目录的朝鲜语统一消息语言包 \ 。This command installs the Korean Unified Messaging language pack from the %ExchangeSourceDir%\ServerRoles\UnifiedMessaging directory.

如何判断是否生效?How do you know this worked?

若要验证是否已成功安装 Exchange 2013,请参阅验证 exchange 2013 安装To verify that you've successfully installed Exchange 2013, see Verify an Exchange 2013 installation.

是否有任何疑问?Having problems? 在 Exchange 论坛中寻求帮助。Ask for help in the Exchange forums. 访问Exchange Server上的论坛。Visit the forums at Exchange Server.

您找到所需内容了吗?请花一点时间向我们发送反馈,告诉我们您希望找到的信息。Did you find what you're looking for? Please take a minute to send us feedback about the information you were hoping to find.