Dela via


Using Cmdlets to Run Forest Preparation

 

Topic Last Modified: 2010-11-03

Use the Enable-CsAdForest cmdlet to prepare the forest for Microsoft Lync Server 2010. After you run forest preparation, you must verify that global settings have been replicated before running domain preparation.

To use cmdlets to prepare the forest

  1. 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. Install Lync Server Core components as follows:

    1. From the Lync Server 2010 installation folder or media, run Setup.exe to start the Lync Server Deployment Wizard.

    2. If you are prompted to install the Microsoft Visual C++ Redistributable, click Yes.

    3. The Microsoft Lync Server 2010 Setup dialog box prompts you for a location to install the Lync Server 2010 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. The installer installs the Lync Server 2010 Core Components.

  3. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, 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 
    

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

To verify that forest preparation was successful

  1. 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. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.

  3. Run:

    Get-CsAdForest 
    

    This cmdlet returns a value of LC_FORESTSETTINGS_STATE_READY if forest preparation was successful.

See Also

Other Resources

Running Forest Preparation