Solved

Windows 7 force DHCP renew after sleep/hibernate?

Posted on 2013-01-25
7
3,153 Views
Last Modified: 2013-01-25
Hi all,

We have sporadic problems with Win 7:
Some clients, after weeks of sleep, display an IP conflict after waking up.
Network is a /16, with around 300 PCs, so it should be more than enough. DHCP is Win2008.
Are there any GP objects that I can use to force a DHCP release/renew after wakeup?

Thanks,
Tamas
0
Comment
Question by:TimotiSt
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 17

Expert Comment

by:Nik
ID: 38818172
You can extend the lease time IMO.
Also, it is useful to use DHCP reservations. At least we have that setup in our company.
0
 
LVL 17

Author Comment

by:TimotiSt
ID: 38818183
Increasing the lease time to a month doesn't seem like the best solution, but it might help.
Reservations would work, but that would mean I'll have to lifecycle manage 300+ MACs in the reservation table, which means extra work...
0
 
LVL 17

Expert Comment

by:Nik
ID: 38818199
I didn't mean that with IMO (in mine opinion) :)
You can extend the lease to your personal preference.

Yes, at this point it's a lot of work to do reservations for 300 clients at this point but it will save you from future frustrations on a long road.

As I am aware domain user doesn't have neccessarry rights to renew its IP address manually, but if it does, you can also create a script on the user desktop that would renew the clients IP address from DHCP server.

So, when the client is back from the sleep it tries to use the last used IP address and because the lease expired, another client got that IP address and you got a conflict.

Those are my solutions based on personal experience and I honestly don't know if you have any other choice.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 3

Expert Comment

by:yaro137
ID: 38818209
Do you have IP conflict detection enabled on your DHCP server?
Conflict detection
0
 
LVL 14

Accepted Solution

by:
BlueCompute earned 300 total points
ID: 38818512
In Windows 7 a fairly straightforward way to do this would be to use Task Scheduler to add a task triggered by the IP conflict event logged in the event log.

You can do this by going into the system event log, selecting the event 4199 (duplicate IP detected) and clicking 'Attach Task To This Event', then running through the wizard to get it to run a simple batch ipconfig /release ipconfig /renew whenever an IP conflict is detected.  You can get the task to run under administrative credentials.

http://www.windowsecurity.com/articles-tutorials/authentication_and_encryption/Attaching-Tasks-Event-Viewer-Logs-Events.html

You can deploy this scheduled task using Group Policy: http://technet.microsoft.com/en-us/library/cc725745.aspx
0
 
LVL 17

Author Closing Comment

by:TimotiSt
ID: 38818653
Now that is a beautiful solution! :)
Thanks mate!
0
 
LVL 14

Expert Comment

by:BlueCompute
ID: 38818866
Glad you like it TimotiSt.  I gotta agree that at first glance it is a fairly clean way of doing what you want.  The devil is in the detail and the deployment though!

Hope it does what you need it to.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question