Share via


Enable-CsAdForest

 

Topic Last Modified: 2012-03-23

Makes the Active Directory modifications required before you can install Microsoft Lync Server 2010. This includes making global changes to the Configuration or System containers; creating universal groups; and creating property sets and display specifiers that are specific to Lync Server 2010.

Syntax

Enable-CsAdForest [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-GlobalCatalog <Fqdn>] [-GlobalSettingsDomainController <Fqdn>] [-GroupDomain <Fqdn>] [-GroupDomainController <Fqdn>] [-Report <String>] [-RootDomainController <Fqdn>] [-SkipPrepareCheck <$true | $false>] [-WhatIf [<SwitchParameter>]]

Detailed Description

Before you can install Lync Server 2010, you must make a number of forest-level changes to Active Directory Domain Services (AD DS). This includes creating display specifiers and objects specific to Lync Server 2010, creating the universal security groups that are needed to manage Lync Server 2010, and granting global settings object access rights to these groups. Forest preparation is typically carried out through the Lync Server 2010 Setup Wizard. However, enterprise administrators can also perform forest preparation at any time by running the Enable-CsAdForest cmdlet.

After Enable-CsAdForest finishes running, you can use the Get-CsAdForest cmdlet to verify that the forest is ready for the next step in the installation process.

Note that this cmdlet carries out tasks similar to those carried out by the following Microsoft Office Communications Server 2007 R2 command:

Lcscmd.exe /forest /action:ForestPrep

Who can run this cmdlet: You must be an enterprise administrator in order to run the Enable-CsAdForest cmdlet locally.

Parameters

Parameter Required Type Description

GroupDomain

Optional

String

Fully qualified domain name (FQDN) of the domain where the new universal security groups should be created. If this parameter is not included, then the groups will be created in the local domain.

GroupDomainController

Optional

String

FQDN of a domain controller where universal group information is stored.

GlobalCatalog

Optional

String

FQDN of a global catalog server in your domain. This parameter is not required if you are running Enable-CsAdForest on a computer with an account in your domain.

GlobalSettingsDomainController

Optional

String

FQDN of a domain controller where global settings are stored. If global settings are stored in the System container in Active Directory, then this parameter must point to the root domain controller. If global settings are stored in the Configuration container, then any domain controller can be used and this parameter can be omitted.

RootDomainController

Optional

String

FQDN of the root domain controller, used to create trust paths for clients that need to access resources in domains other than their own.

Force

Optional

Switch Parameter

Suppresses the display of any non-fatal error message that might occur when running the command.

Report

Optional

String

Enables you to specify a file path for the log file created when the cmdlet runs. For example: -Report "C:\Logs\ForestPrep.html"

SkipPrepareCheck

Optional

Boolean

When set to True ($True), causes Enable-CsAdForest to run without first doing its initial preparation checks.

WhatIf

Optional

Switch Parameter

Describes what would happen if you executed the command without actually executing the command.

Confirm

Optional

Switch Parameter

Prompts you for confirmation before executing the command.

Input Types

None.

Return Types

None.

Example

-------------------------- Example 1 ------------------------

Enable-CsAdForest

This command prepares the Active Directory forest for the installation of Lync Server 2010. Because the GroupDomain parameter is not used, the universal security groups generated when you run Enable-CsAdForest will be created in the local domain.

-------------------------- Example 2 ------------------------

Enable-CsAdForest -GroupDomain northamerica.litwareinc.com

This command prepares the Active Directory forest for the installation of Lync Server 2010. The GroupDomain parameter is used to ensure that the universal security groups created by running Enable-CsAdForest will be created in the northamerica.litwareinc.com domain.