Discussion Locked
0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a laptop that goes between offices and different types of DHCP servers. Is there a key entry that needs to be adjusted or added to force a release of all IP addresses at shutdown? Right now it is retaining the IP address handed out by a non NT machine until you force a release and renew using winipcfg.
7 replies
by eschwartz
typing "winipcfg /release_all" will release all adapters.
I'm positive there is a way to execute commands at shutdown, but the methods escape me... I'm sure that some registry hack program would provide that.
an alternative to registry hacks, is to create a shortcut on your desktop that runs that command and double-click it just before you shut down the machine.
Found a better method see my answer below.
by matt_jones
The easiest way of achieving your goal (of getting the laptop to work at both locations without doing anything beyond plugging it in) is to set it up with a static IP address. Set both servers up to allow that IP address, (but obviously outside the dynamically assigned range) and Bobs your fathers brother.
Unless you come up with a keen way for the laptop to work as a router I don't believe this would work to well. If on the other hand it had NT server on it and could do dual IP address attachment to a single adaptor, it might work.
Well, here is the best solution I found and possibly the best as it requires no registry editing and runs all by itself. Create a batch file (ipupdate.bat) with the following lines. "ipconfig /release_all" and "ipconfig /renew_all". save to c:\ for ease of finding the file set the properties to run minimized and close when finished. Add this file to the Scheduled tasks and set to run at system startup. No intervention by user required, only has to wait until script runs.
Poster rated this answer
This question was closed by the author
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending
0 helpful
15 replies
Question
Is WSL still relevant in 2026?
0 helpful
1 reply
0 helpful
2 replies
0 helpful
10 replies
Question Unanswered
i need help in transferring my bulk emlx files
0 helpful
0 replies