samedi 14 septembre 2013

[Windows Server 2012] Issues with Active Directory in a Lab environment - Part 4


Active Directory is a great feature in Windows Server. However, imagine that you stop your lab environment for several days, weeks and perhaps months. You will certainly encounter some troubles when you'll try to turn on again your DCs.
In that series, I will share my own experience and show how to solve that troubles.

1. The DNS is waiting for Active Directory - KB 2001093
2. DFSR JET database is not shut down cleanly
3. This server has been disconnected from other partners for 60 days
4. The DFS Replication service failed to register the WMI providers


4. The DFS Replication service failed to register the WMI providers


Symptoms
You note that replication of the SYSVOL folder between your DCs doesn't work: For example, if you add manually a file in that folder, that file is not replicated on the other DC. That problem can also create some troubles on computers if they can't download the right version of their GPO.
Of course, all DCs are online and can be joined normally.

In Event logs,you find the following Event:

Event ID:      6104
Log Name:      DFS Replication
Source:        DFSR
Level:         Error
The DFS Replication service failed to register the WMI providers. Replication is disabled until the problem is resolved.






Resolution

Unfortunately, I have not found any KB about that trouble on Microsoft web site. With several blogs and forums, I found command lines that solve my problem :

CD %windir%\system32\wbem
mofcomp dfsrprov.mof
mofcomp dfsrprov.mfl
wmiprvse /regserver
net stop dfsr
net start dfsr



I hope that feedback will be helpful if you encounter the same issue.



See you soon
Julien