Solved

Convert from Fixed IP to DHCP

Posted on 2003-11-17
3
311 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
Comment Utility
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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
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…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

771 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

10 Experts available now in Live!

Get 1:1 Help Now