Lync Schema prep (update) error - The exit code is 5

If you prepare the Schema update for Lync 2010 or 2013, you might encountar an error:

Task execution failed.
The exit code is "5".

This is an error related to missing user rights (permission). The user who executs the Schema Prep
Install-CsAdServerSchema has not member of the Domain Schema Admins.

Thisis often an issue, if you changed the replication on the Schema Master by disabling INBOUND and OUTBOUND replication. Even if you have new assigned the Schema Master, and the Lync Servers Logon Server is now the DC, where the replication was disabled, before you assigend joined the group, it is not replicated.

Solution:
Enable the replication, than logout and login again, than disable the replication angain


AD commands:
Disable Replication
repadmin /options <schema master DC name> +DISABLE_OUTBOUND_REPL
repadmin /options <schema master DC name> +DISABLE_INBOUND_REPL

Enable Replication
repadmin /options <schema master DC name> -DISABLE_OUTBOUND_REPL
repadmin /options <schema master DC name> -DISABLE_INBOUND_REPL

Comments

Popular posts from this blog

Skype for Business, Lync and Exchange Web Services (EWS) and different DNS Domains- Exchange crawling e.g. for presence

File Share Perfomance for Skype for Business (slow conference join, slow address book)

Lync 2013 Client, Desktop Sharing shows blank screen (Windows 7, Windows 8, Windows 8.1)