为 Lync Server 2013 运行林准备Running forest preparation for Lync Server 2013

 

上次修改的主题: 2012-10-29Topic Last Modified: 2012-10-29

您可以使用安装程序或 Lync Server 命令行管理程序 cmdlet 来准备林。You can use Setup or Lync Server Management Shell cmdlets to prepare the forest. 准备林的 cmdlet 为 Enable-CsAdForestThe cmdlet that prepares the forest is Enable-CsAdForest.

在准备林之后,您必须验证在运行域准备之前是否复制了全局设置。After you prepare the forest, you must verify that global settings have been replicated before running domain preparation.

使用安装程序准备林To use Setup to prepare the forest

  1. 以目录林级根域的 Enterprise Admins 组成员的身份登录到加入域的计算机。Log on to a computer that is joined to a domain as a member of the Enterprise Admins group for the forest root domain.

  2. 在 Lync Server 2013 安装文件夹或媒体中,运行 Setup.exe 以启动部署向导。From the Lync Server 2013 installation folder or media, run Setup.exe to start the Deployment Wizard.

  3. 单击“准备 Active Directory”****,然后等待确定部署状态。Click Prepare Active Directory, and then wait for the deployment state to be determined.

  4. 在“步骤 3: 准备当前林”**** 中,单击“运行”****。At Step 3: Prepare Current Forest, click Run.

  5. 在“准备林”**** 页上,单击“下一步”****。On the Prepare Forest page, click Next.

    备注

    林准备允许你选择将 Lync Server 2013 的通用组放置在什么位置。Forest Preparation allows you to choose where to place the Universal Groups for Lync Server 2013. 选择与组织要求一致的位置。Choose a location that is consistent with the requirements of your organization.

  6. 在“正在执行命令”**** 页上,查找“任务状态: 已完成”****,然后单击“查看日志”****。On the Executing Commands page, look for Task status: Completed, and then click View Log.

  7. 在 " 操作 " 列下,展开 " 林准备",查找 <Success> 每个任务末尾的 "执行结果",以验证是否已成功完成 "林准备",然后关闭日志,然后单击 " 完成"。Under the Action column, expand Forest Prep, look for a <Success> Execution Result at the end of each task to verify that forest preparation completed successfully, close the log, and then click Finish.

  8. 等待 Active Directory 复制完成,或者强制向目录林根级域控制器的“Active Directory 站点和服务”**** 管理单元中列出的所有域控制器进行复制,然后再运行域准备。在所有 Active Directory 站点中的域控制器之间强制进行复制,以使几分钟内就在站点中进行复制操作。Wait for Active Directory replication to complete, or force replication to all domain controllers listed in the Active Directory Sites and Services snap-in for the forest root domain controller, before running domain preparation. Force replication between the domain controllers in all Active Directory sites to cause replication within the sites to occur within minutes.

使用 cmdlet 准备林To use cmdlets to prepare the forest

  1. 以目录林根级域中的 Domain Admins 组成员身份登录到加入域的计算机。Log on to a computer that is joined to a domain as a member of the Domain Admins group in the forest root domain.

  2. 安装 Lync Server Core 组件,如下所示:Install Lync Server Core components as follows:

    1. 在 Lync Server 2013 安装文件夹或媒体中,运行 Setup.exe 以启动 Lync Server 部署向导。From the Lync Server 2013 installation folder or media, run Setup.exe to start the Lync Server Deployment Wizard.

    2. 如果提示您安装 Microsoft Visual C++ 可再发行软件产品,单击“是”****。If you are prompted to install the Microsoft Visual C++ Redistributable, click Yes.

    3. "Lync Server 2013 安装程序" 对话框将提示您输入安装 Lync Server 文件的位置。The Lync Server 2013 Setup dialog box prompts you for a location to install the Lync Server files. 选择默认位置或“浏览”**** 至要选择的位置,然后单击“安装”****。Choose the default location or Browse to a location of your choice, and then click Install.

    4. 在“许可协议”页上,选中“我接受许可协议中的条款”****,然后单击“确定”****。On the License Agreement page, check I accept the terms in the license agreement, and then click OK. 安装程序安装 Lync Server 2013 核心组件。The installer installs the Lync Server 2013 Core Components.

  3. 启动 Lync Server 命令行管理程序:依次单击“开始”****、“所有程序”****、“Microsoft Lync Server 2013”**** 和“Lync Server 命令行管理程序”****。Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.

  4. Run:

    Enable-CsAdForest [-GroupDomain <FQDN of the domain in which to create the universal groups>]
    

    例如:For example:

    Enable-CsAdForest -GroupDomain domain1.contoso.com 
    

    如果不指定 GroupDomain 参数,则默认值为本地域。如果先前在默认域以外的域中创建了通用组,则必须显式指定 GroupDomain 参数。If you do not specify the GroupDomain parameter, the default value is the local domain. If universal groups were created previously in a domain that is not the default domain, you must specify the GroupDomain parameter explicitly.

  5. 等待 Active Directory 复制完成,或者强制向目录林根级域控制器的“Active Directory 站点和服务”**** 管理单元中列出的所有域控制器进行复制,然后再运行域准备。Wait for Active Directory replication to complete, or force replication to all domain controllers listed in the Active Directory Sites and Services snap-in for the forest root domain controller, before running domain preparation.

  6. 验证林准备是否成功。运行:Verify that forest preparation was successful. Run:

    Get-CsAdForest 
    

    如果林准备成功,则此 cmdlet 将返回 **LC _ FORESTSETTINGS _ 状态 _ ** 为 "就绪" 的值。This cmdlet returns a value of LC_FORESTSETTINGS_STATE_READY if forest preparation was successful.