Solved

DHCP Renew for all network computers

Posted on 2009-05-12
7
5,173 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

9 Experts available now in Live!

Get 1:1 Help Now