Solved

Convert from Fixed IP to DHCP

Posted on 2003-11-17
3
347 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

685 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