Solved

Convert from Fixed IP to DHCP

Posted on 2003-11-17
3
324 Views
Last Modified: 2013-12-28
Is there an easy way to covert a Windows NT Workstation from a Fixed IP address to use a
DHCP server without having to visit each machine?

I am looking at setting \HKLM\System\ControlSet001\Enum\Root\LEGACY_DHCP\0000\StatusFlag = 8
from
\HKLM\System\ControlSet001\Enum\Root\LEGACY_DHCP\0000\StatusFlag = 0

I am writing this using reg.exe from a .bat file.

I will execute the .bat file using sysinternal psexec.exe
and then call shutdown (for a reboot).

Will this work?

I know that quite a few registry setting get made once you move from a fixed to DHCP setting.

TIA
0
Comment
Question by:GotSand
3 Comments
 
LVL 16

Accepted Solution

by:
JammyPak earned 250 total points
ID: 9772511
from http://www.windowsitlibrary.com/Content/69/01/9.html:

To enable the DHCP client service on a remote system, you can use the Select Computer option in Regedt32.exe to remotely change this registry entry. It tells Windows NT to configure the first IP interface on the machine using DHCP.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: EnableDhcp
Data Type: REG_DWORD
Value: 1  

Me now:
Rather that use Regedt32 and connect to each PC as they suggest, I would probably use regini and do it from a login script.
Here is info on how to distribute registry changes automatically:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag01/html/DistributingRegistryChanges.asp

HTH,
JP
0

Featured Post

Why won’t your email signature format correctly?

Struggling to get your corporate email signatures to format correctly? Does the logo keep resizing? Is the text appearing too big? What can you do to prevent this? Find out how you can save your signatures today.

Question has a verified solution.

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

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

948 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

19 Experts available now in Live!

Get 1:1 Help Now