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

How to hide users from GAL if they are AD Connect synchronized

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings