Solved

DHCP Renew for all network computers

Posted on 2009-05-12
7
5,116 Views
Last Modified: 2012-05-06
How do I force an immediate IP release and renew of all DHCP clients on my domain controller?
How do I do this for just one client?

Where do I change the settings for how often client computers do this automatically?  Is it a group policy thing?

Running Server 2003.
0
Comment
Question by:AAIAdmin
7 Comments
 
LVL 4

Expert Comment

by:gilget
ID: 24364285
hello

the time for the lease to be valid is configured on the dhcp server.

you can run the commands

ipconfig /release
ipconfig /renew

I think You cant run it for all machines from the AD controller.
0
 

Author Comment

by:AAIAdmin
ID: 24364396
So, I can't force a individual client to immediate release and renew the DCHP settings from the server?

How do I change the lease time on the dhcp server?
0
 
LVL 11

Expert Comment

by:g000se
ID: 24364409
Hello,

But you can change when the lease is up on the Dhcp configuration so the clients will have to renew their leases for the IP address.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 4

Accepted Solution

by:
gilget earned 250 total points
ID: 24364450
you can set the lease time of each DHCP scope if you right cliick the DHCP scope on in the DHCP server console and then see in properties.

no, I guess You cant force IP / DHCP from server to all clients without using 3rd party software.
0
 
LVL 4

Assisted Solution

by:delyan_valchev
delyan_valchev earned 250 total points
ID: 24364460
For a single workstation you can use the commands as gilget proposed.
I think you cannot force all the clients to renew their IP addresses centrally in one single shot. You can delete all the current DHCP leases in the scope using the DHCP console and then use either options:
1. Using PSexec from the PSTools package http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
Create a list with the names of the clients you want to have their IPs renewed. Say it's named clients.lst
Execute PSExec as follows:
PSExec @clients.lst ipconfig /renew
2. Using AT, you can schedule the execution of "ipconfig /renew" on remote machines like that:
AT \\<machinename> <time> "ipconfig /renew"
e.g.:  AT \\LOCALPC 10:30 "ipconfig /renew"
Hope it helps!
0
 
LVL 2

Expert Comment

by:CBalderson
ID: 24365009
Connect to your DHCP server and check the Scopes Lease Duration?  (under Scope Properties)

By default, the renewal will occur at Half of the Lease Duration (8 day lease will renew on the 4th day).  If you want this to be sooner you can change the Lease Duration to something short. (typically wireless would be short - 4 hours, LAN would be longer 3 - 8 days depending on your clients needs)

Run ipconfig /all and you will see the Lease Obtained and Lease Expires information.
0
 

Author Comment

by:AAIAdmin
ID: 24365148
Thanks gilget for helping find out how to change the DHCP lease times.

Thanks delyan_valchev for helping me figure out how to renew individual clients using PSExec.

These were my two major problems....well done on getting me the answer quickly.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Learn about cloud computing and its benefits for small business owners.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

13 Experts available now in Live!

Get 1:1 Help Now