Group Policy SYSVOL Replication Issues

14 Aug

Recently I was rolling out a new printer via GPO on DC2. When I did a bit more checking it was not being applied where it should.

When I then checked a DC1 and DC3 I noticed that the new printer was missing from the Printers GPO.

When I opened Group Policy Objects, Printers GPO and clicked on Status and ‘Detect Now’ I got he following:

gpo1

So something was obviously wrong. I then recalled a DC having not shut down gracefully in the past and that replication did not then take place automatically in 2012, as kind of a safety feature that was implemented.

Taking a look through the event logs I found:

 

The DFS Replication service stopped replication on volume C:. This occurs when a DFSR JET database is not shut down cleanly and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the ResumeReplication WMI method to resume replication.

Additional Information:

Volume: C:

GUID: A912C154-3717-11E2-93E7-806E6F6E6963

Recovery Steps

1. Back up the files in all replicated folders on the volume. Failure to do so may result in data loss due to unexpected conflict resolution during the recovery of the replicated folders.

2. To resume the replication for this volume, use the WMI method ResumeReplication of the DfsrVolumeConfig class. For example, from an elevated command prompt, type the following command:

wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid=”A912C154-3717-11E2-93E7-806E6F6E6963″ call ResumeReplication

For more information, see http://support.microsoft.com/kb/2663685.

 

This then let me to here: http://support.microsoft.com/kb/2846759

And the Fix of:

wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid=”PLACE-GUID-HERE” call ResumeReplication

So in my case:

wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid=”A912C154-3717-11E2-93E7-806E6F6E6963″ call ResumeReplication

gpo2

(Use single quotes)

The event log then showed:

 

The DFS Replication service successfully recovered from an unexpected shutdown on volume C:.This can occur if the service terminated abnormally (due to a power loss, for example) or an error occurred on the volume. No user action is required.

 Additional Information:

Volume: C:

GUID: A912C154-3717-11E2-93E7-806E6F6E6963

 

And everything was good in the world again.