Automatically Reset DHCP Leases for Win95/WinNT/WFWG Clients

ID: Q154488


The information in this article applies to:


SYMPTOMS

If a scope is removed in DHCP Manager and another scope is defined, Microsoft-based DHCP clients will not automatically renew their lease to conform to the new scope.


CAUSE

The DHCP clients will not renew their leases automatically until half of the lease time has expired. Microsoft DHCP Server cannot force clients to renew their leases when the DHCP scope has changed.


RESOLUTION

There are two ways the DHCP client computers will renew their leases automatically:

In networked environments with a very large number of clients, the preferred method to force clients to renew their leases is to use the IPCONFIG /RENEW command in an Windows NT login script. This method works correctly in a Windows NT and Windows for Workgroups 3.11 networking environment.

However, with the introduction of Windows 95, the command-line option is no longer available. Use the Ipconfig.exe utility from Windows for Workgroups 3.11. This utility works correctly with Windows 95 computers and the IPCONFIG /RENEW option can once again be used for these computers.

The following is an example of a Windows NT login script for automatically renewing DHCP clients, assuming Ipconfig.exe from Windows for Workgroups 3.11 is on \\Server\Win95. For this example, drive letter Y was used. Any available drive letter can be used for this purpose.
NET USE Y: \\SERVER\WIN95
IF EXIST C:\WINDOWS\IPCONFIG.EXE IPCONFIG.EXE /RENEW ;WFW
IF EXIST C:\WINNT35\SYSTEM32\IPCONFIG.EXE IPCONFIG.EXE /RENEW ;WINNT
IF EXIST C:\WINDOWS\WINIPCFG.EXE Y:\IPCONFIG.EXE /RENEW ;WIN95
NET USE Y: /d ; Deleting the drive letter mapping

Additional query words: prodnt


Keywords          : kbnetwork nttcp 
Version           : WINDOWS:95; winnt:3.5,3.51,4.0
Platform          : WINDOWS winnt 
Issue type        : 

Last Reviewed: July 8, 1999