How to Enable DFS Debugging in Windows 2000
ID: Q217146
|
The information in this article applies to:
-
Microsoft Windows 2000 Server
-
Microsoft Windows 2000 Advanced Server
-
Microsoft Windows 2000 Datacenter Server
IMPORTANT: This article contains information about editing the registry.
Before you edit the registry, make sure you understand how to restore it if
a problem occurs. For information about how to do this, view the "Restoring
the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help
topic in Regedt32.exe.
SUMMARY
This article describes how to enable Distributed File System (DFS) debugging in Windows 2000. This method uses the checked version of the Netapi32.dll file in conjunction with a registry entry to output DFS API debug statements to a debugger.
MORE INFORMATION
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys and
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT, you should also update your Emergency
Repair Disk (ERD).
To Enable Debug Output
- Rename the original Netapi32.dll file in the %SystemRoot%\System32 folder to another name (such as Netapi32.dll.orig). Note that this file is normally in use by the system and must be replaced while the server is offline.
- Copy the checked Netapi32.dll file to the %SystemRoot%\System32 folder. The checked file should match the build and service pack revision of the existing file.
- Add or set the NetAPIDfsDebug (REG_DWORD) entry in the registry under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DFS. Set the data value to 0x1.
- Restart the computer.
To Disable Debug Output
- Set the NetAPIDfsDebug entry in the registry to 0x0, remove the entry, or replace the checked Netapi32.dll file with the original.
- Rebstart the computer.
Additional query words:
Keywords : kbenv kbtool
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto