If you have worked with Active Directory on Windows Servers, you may have run into problems with things like GPO’s and Scripts not syncing between Domain Controllers and wondered how to troubleshoot it.
In addition to the obvious, like:
there is also a very handy command Microsoft Tech Support gave me (when working on a DFS problem for more than a week!):
Run this on a DC (or run on each of your DC’s if you have problems), in an CMD PROMPT AS AN ADMIN:
For /f %i IN ('dsquery server -o rdn') do @echo %i && @wmic /node:"%i" /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo WHERE replicatedfoldername='SYSVOL share' get replicationgroupname,replicatedfoldername,state
This command will list the DFS status for each of your Domain Controllers. The states codes translate to:
As shown in the screenshot above you want to see DFS STATE CODE = 4
This website uses cookies.