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.

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


Popular posts from this blog

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

Troubleshoot Outlook Plug-In for Teams

Change Authentication Code Phone Number if Teams ask for verification