Lync Schema prep (update) error - The exit code is 5
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
repadmin /options <schema master DC name> +DISABLE_OUTBOUND_REPL
repadmin /options <schema master DC name> +DISABLE_INBOUND_REPL
repadmin /options <schema master DC name> -DISABLE_OUTBOUND_REPL
repadmin /options <schema master DC name> -DISABLE_INBOUND_REPL
Author: Thomas Pött Managing Consultant Microsoft UC