Running Active Directory schema preparation in Lync Server 2013
Topic Last Modified: 2012-10-29
You can use Setup or Lync Server Management Shell cmdlets to prepare the Active Directory schema. The cmdlet that extends the Active Directory schema is Install-CsAdServerSchema.
Note
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 https://go.microsoft.com/fwlink/p/?linkId=125769.
After you complete schema preparation, manually verify that the schema partition has been replicated before proceeding to forest preparation. For details, see Verifying Active Directory schema replication in Lync Server 2013.
To use Setup to prepare the schema of the current forest
Log on to a server in your forest as a member of the Schema Admins group and with administrator rights on the schema master.
From the Lync Server 2013 installation folder or media, run Setup.exe to start the Deployment Wizard.
If you are prompted to install the Microsoft Visual C++ Redistributable, click Yes.
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.
On the License Agreement page, check I accept the terms in the license agreement, and then click OK.
The installer installs the Lync Server Core Components.
When the Deployment Wizard is ready, click Prepare Active Directory, and then wait for the deployment state to be determined.
At Step 1: Prepare Schema, click Run.
On the Prepare Schema page, click Next.
On the Executing Commands page, look for Task status: Completed, and then click View Log.
Under the Action column, expand Schema Prep, look for the <Success> Execution Result at the end of each task to verify that schema preparation completed successfully, close the log, and then click Finish.
Wait for Active Directory replication to complete or force replication.
Manually verify that the schema changes replicated to all other domain controllers. For details, see Verifying Active Directory schema replication in Lync Server 2013.
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 2013 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 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.
On the License Agreement page, check I accept the terms in the license agreement, and then click OK. The installer installs the Lync Server 2013 Core Components.
Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.
Run:
Install-CsAdServerSchema [-Ldf <directory where the .ldf file is located>]
If you do not specify the Ldf parameter, the default value is the Lync Server 2013 installation path that is read from the registry.
For example:
Install-CsAdServerSchema -Ldf "C:\Program Files\Microsoft Lync Server 2013\Deployment\Setup"
Use the following cmdlet to verify that schema preparation ran to completion.
Get-CsAdServerSchema
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. For details, see Verifying Active Directory schema replication in Lync Server 2013.