Solved

Windows 7 force DHCP renew after sleep/hibernate?

Posted on 2013-01-25
7
3,026 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sysprep and capture task sequence enables admin account 16 39
Bootstrap.ini settings in MDT 1 29
Samsung Smart View subtitles don't work 1 65
Entity Framework 7 28
Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now