Solved

Convert from Fixed IP to DHCP

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Command prompt flashing when starting PC 16 88
Windows 10: how to eliminate the lock screen at boot 5 85
Picture size 4 35
Win 10...Some user folders missing location tab 7 81
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

828 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