How to force DHCP release through registry on shutdown?
The following works for windows 98, does anyone know of a way to do this in windows 95?
SUMMARY
You can configure Windows 98 to automatically release all Dynamic Host Configuration Protocol (DHCP) lease information at shutdown by modifying the registry.
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 or Windows 2000, you should also update your Emergency Repair Disk (ERD).
Add the following registry items to cause Windows 98 to automatically release all DHCP lease information at shutdown:
Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\VxD\DHCP
Value name: ReleaseLeaseOnShutdown
Type: DWORD
Value data: 0x00000001 (1)
Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Shutdown
Value name: FastReboot
Type: STRING
Value data: 0
NOTE : The first value (ReleaseLeaseOnShutdown) is not present by default and must be added. The second value (FastReboot) is set to 1 by default.
The fast shutdown feature must be disabled for this method to work correctly. If it is not disabled, Windows 98 cannot process the command to release the DHCP information before shutting down.
When Windows 98 obtains TCP/IP configuration information from a DHCP server, it creates registry entries to store that information. If there is a problem contacting the DHCP server the next time the computer is started, the necessary TCP/IP configuration information is already stored. However, this may not be the optimal behavior in some network environments.