JSI Tip 1118. How do I force DHCP lease renewal?

Jerold Schulman

March 4, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today


When you remove a scope in DHCP manager and define another one, Microsoft DHCP clients will not automatically renew their lease.

To force lease renewal:

1. If you have W95 clients, you must copy Ipconfig.exe from WFW 3.11 to C:WINDOWS, prior to running the script.

NOTE: If you have Winipcfg.exe version 4.10.1656 or later, you don't need to get Ipconfig.exe.

2. Add the following code to your logon script:

if /i "%OS%"=="Windows_NT" goto IPCFGif EXIST C:WINDOWSIPCONFIG.EXE goto IPCFGif EXIST C:WINDOWSWINIPCFG.EXE goto W98goto IPCFG:W98C:WINDOWSWINIPCFG.EXE /RENEW_ALLgoto end:IPCFGIPCONFIG.EXE /RENEW:end


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like