Topic Last Modified: 2011-03-25
Use the Install-CsAdServerSchema cmdlet to extend the Active Directory schema. After schema preparation is complete, manually verify that the schema partition has been replicated before proceeding to forest preparation.
|The schema preparation cmdlet (Install-CsAdServerSchema) must access the schema master, which requires that the remote registry service is running and that the remote registry key is enabled. If the remote registry service cannot be enabled on the schema master, you can run the cmdlet locally on the schema master. For details about registry remote access, see Microsoft Knowledge Base article 314837, "How to Manage Remote Access to the Registry," at http://go.microsoft.com/fwlink/?LinkId=125769.|
To use cmdlets to prepare the schema of the current forest
Log on to a computer in the forest as a member of the Schema Admins group and with administrator rights on the schema master.
Install Lync Server Core components as follows:
- From the Lync Server 2010 installation folder or media, run
Setup.exe to start the Lync Server Deployment Wizard.
- If you are prompted to install the Microsoft Visual C++
Redistributable, click Yes.
- 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.
- 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.
- From the Lync Server 2010 installation folder or media, run Setup.exe to start the Lync Server Deployment Wizard.
Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.
Install-CsAdServerSchema [-Ldf <directory where the .ldf file is located>]
If you do not specify the Ldf parameter, the default value is the Microsoft Lync Server 2010 installation path that is read from the registry.
Install-CsAdServerSchema -Ldf "C:\Program Files\Microsoft Lync Server 2010\Deployment\Setup"
Use the following cmdlet to verify that schema preparation ran to completion.
This cmdlet returns a value of SCHEMA_VERSION_STATE_CURRENT if schema preparation was successful.
Wait for Active Directory replication to complete or force replication.
Manually verify that the schema changes replicated to all other domain controllers, as described in the following procedure.
To manually verify schema replication
Log on to a domain controller as a member of the Enterprise Admins group.
Open ADSI Edit by clicking Start, clicking Administrative Tools, and then clicking ADSI Edit.
Tip: Alternatively, you can run adsiedit.msc from the command line.
In the Microsoft Management Console (MMC) tree, if it is not already selected, click ADSI Edit.
On the Action menu, click Connect to.
In the Connection Settings dialog box under Select a well known Naming Context, select Schema, and then click OK.
Under the schema container, search for CN=ms-RTC-SIP-SchemaVersion. If this object exists, and the value of the rangeUpper attribute is 1100 and the value of the rangeLower attribute is 14, then the schema was successfully updated and replicated. If this object does not exist or the values of the rangeUpper and rangeLower attributes are not as specified, then the schema was not modified or has not replicated.