Event ID 3051 and 5706 on domain controllers

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry


The following events may be logged in the System log:

Warning: Netlogon Event 3051:

The registry or the information you just typed includes an illegal value for "DBFlag".

Event 3051:

The registry or the information you just typed includes an illegal value for "SysVol".

Error: Netlogon Event 5706:

Netlogon could not create share c:\winnt\system32\repl\import\scripts. The following error occurred: The System could not find the path specified.

Error Netlogon Event 5706:

The Netlogon service could not create server share. The following error occurred:

The filename, directory name, or volume label syntax is incorrect.


These error messages can occur if entries under the following registry key on the domain controller are missing or incorrect:



WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To restore the Netlogon service to working order and prevent additional error messages:

  1. Stop the Netlogon service by typing net stop netlogon at a command prompt.
  2. Start Registry Editor (Regedt32.exe).
  3. Locate the following key in the registry:
  4. Adding registry values.

    NOTE: If you get the error message:
    Registry Editor could not create the value entry; the value entry already exists. Please enter a new name.
    This indicates that the entries may already exist but not be visible. Open regedit.exe and view
    If you see all of the entries, delete the SysVol entry and continue with step 4 and re-create only the SysVol entry in regedt32.exe.

    On the Edit menu, click Add Value, and then add the following registry values:
    Value Name: DBFlag
    Data Type: REG_SZ
    Value: 0

    Value Name: SysVol
    Data Type: REG_SZ
    Value: Path_to_sysvol (By default, this value is set to C:\WINNT\SYSVOL\sysvol)
  5. Quit Registry Editor.
  6. Restart the Netlogon service by typing net start netlogon.
NOTE: If there is another domain controller in the domain, you can save the Parameters key from that domain controller and restore it to the problem domain controller, making corrections if necessary.

More Information

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

245086 Netlogon Event 3051, with invalid registry entry in Event Viewer

247811 How domain controllers are located in Windows 2000


Article ID: 258805 - Last Review: Feb 28, 2007 - Revision: 1