Link to home
Start Free TrialLog in
Avatar of Ima Bum
Ima Bum

asked on

How can I force users to renew their DHCP leases during the logon or reboot process?

I have XP clients with 5 day leases.  

To make a long story short, I need the XP clients to release and renew their DHCP leases within 24 hours either when they logout, reboot or log back on.  Rebooting would be easiest.  

Thanks,

R
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

Why not just set the lease period to 24hrs.
Avatar of Ima Bum
Ima Bum

ASKER

The lease on the clients is already set for 5 days, so the lease doesn't end for another four days.  Too long.  I need it to end within 24 hours and I cannot visit the clients.  Too many of them.  I need to script this, or force it somehow during the logon, logoff, or reboot process.
ASKER CERTIFIED SOLUTION
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ima Bum

ASKER

i read that you can stick the ipconfig /release in a logon script, so I'm going to try and see if that works, along with the shutdown command.
Avatar of Ima Bum

ASKER

I shortened the leases to 24 hours.

Stuck a line in the logon scripts to, copy the following script to the clients. (very important that this be "ON" the client told the users to reboot before going home).  
ipconfig /release
ipconfig /renew


Avatar of Ima Bum

ASKER

awarded points to keep it simple, but the solution was NOT my solution.   my last comments were the actual solution and steps used to actually get the job done.  any entry level tech, knows what ipconfig is.  the solution was given very little effort.