The File Replication Service is in an error state. Files will not replicate to or from one or all of the replica sets on ...

The File Replication Service is in an error state. Files will not replicate
to or from one or all of the replica sets on this computer until the
following recovery steps are performed:



 Recovery Steps:



 [1] The error state may clear itself if you stop and restart the FRS service.
This can be done by performing the following in a command window:



    net stop ntfrs

    net start ntfrs



If this fails to clear up the problem then proceed as follows.



 [2] For Active Directory Domain Services Domain Controllers that DO NOT host any DFS
alternates or other replica sets with replication enabled:



If there is at least one other Domain Controller in this domain then
restore the "system state" of this DC from backup (using ntbackup or other
backup-restore utility) and make it non-authoritative.



If there are NO other Domain Controllers in this domain then restore
the "system state" of this DC from backup (using ntbackup or other
backup-restore utility) and choose the Advanced option which marks
the sysvols as primary.



If there are other Domain Controllers in this domain but ALL of
them have this event log message then restore one of them as primary
(data files from primary will replicate everywhere) and the others as
non-authoritative.





 [3] For Active Directory Domain Services Domain Controllers that host DFS alternates
or other replica sets with replication enabled:



 (3-a) If the Dfs alternates on this DC do not have any other replication
partners then copy the data under that Dfs share to a safe location.

 (3-b) If this server is the only Active Directory Domain Services Domain Controller for this
domain then, before going to (3-c),  make sure this server does not have any
inbound or outbound connections to other servers that were formerly Domain
Controllers for this domain but are now off the net (and will never be
coming back online) or have been fresh installed without being demoted.
To delete connections use the Sites and Services snapin and look for

Sites->NAME_OF_SITE->Servers->NAME_OF_SERVER->NTDS Settings->CONNECTIONS.

 (3-c) Restore the "system state" of this DC from backup (using ntbackup
or other backup-restore utility) and make it non-authoritative.

 (3-d) Copy the data from step (3-a) above to the original location
after the sysvol share is published.





 [4] For other Windows servers:



 (4-a)  If any of the DFS alternates or other replica sets hosted by
this server do not have any other replication partners then copy the
data under its share or replica tree root to a safe location.

 (4-b)  net stop ntfrs

 (4-c)  rd /s /q  %1

 (4-d)  net start ntfrs

 (4-e)  Copy the data from step (4-a) above to the original location after
the service has initialized (5 minutes is a safe waiting time).



Note: If this error message is in the eventlog of all the members of a
particular replica set then perform steps (4-a) and (4-e) above on only
one of the members.