Changing IP address via registry change?

Posted on 1998-08-03
Medium Priority
Last Modified: 2013-12-19
We have a remote (all svrs/wkstns apart from PDC offsite) network of 150 NT4 machines which is managed by Tivoli's Netfinity. We have been told by higher forces that all our IP addresses need to be changed. We of course can do this manually with Netfinity if i have nothing better to do for this month.
But I would like to do this by changing the IP address value in the registry for the NIC key under the 'ControlSet001' branch of 'LocalMachine' via the logon script.
This works very nicely for actually changing the address, BUT the process seems to put the 'Clone' branch of this hive in error (that is the message the registry gives when trying to view it after the change to 'ControlSet001').
To bring it out of error you need to make an address change under 'Network' in 'Control Panel'.
I understand that the 'clone' is an image of a clean start by 'ControlSet001 and is then used for 'Last known good'.

Can this change be made safely by this method, and what is the consequence of the 'Clone' key being left in error?

Is there a better/other automatic way to perform this that someone would suggest?

Question by:tombo
  • 3
  • 2
LVL 37

Expert Comment

ID: 1569782
I think you should change the hive key under CurrentControlSet. As for automatically change the registry, hmm, I haven't tried such a procedure, but I think it should work. That is, use Regsitry editor use to import registry from a text file, which you have already specify proper IP settings in this file. Also, the command line based Regedit.exe parameters may help you do it within a batch file. In addition, use a little program to automatically generate the text based registry file by only changing IP settings sequently.

Hope this helps,

Author Comment

ID: 1569783
Thanks - but I think the question got lost amongst the words,

I intend to use scripts (with regedit) to change the registry IPAddress value for the NIC (if I'm happy it is stable) via the users logon script. My two questions concerned the following:

1) Is it stable changing the registry this way, given that the 'clone' key gives an error message when I do it ?(the address change does work) - 'clone' key is used for 'Last Known Good'.

2) Are there any OTHER ways apart from what I'm doing (changing registry values with regedit) to achieve this?

Accepted Solution

Kitsune earned 70 total points
ID: 1569784
Yes, it is stable making these changes. Last Known Good is only going to be used for error recovery and after you have successfully booted NT this is updated.

As far as other methods, you can't change this field unless through Control Panel ==> Network or by using REGEDT32. Just incase you weren't aware, you don't need to replace the entire registry but rather can have REGEDT32 import registry keys which have been previously exported. These are small, text based files with .reg extensions. You can use a batch file to import a given registry key (out of a whole range of keys) based on the unique MAC address of the NIC although we are now getting into the field of automation which is not really what you are asking about.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 1569785
Hi kitsume

Thanks - I needed assurance that making the 'clone' hive report an error when changing the IPAddress (only) within the CurrentControlset001 hive wasn't going to cause (big) problems downstream i.e. having to need to use 'Last Known Good' but finding it is corrupt due to error problem with 'clone'


Author Comment

ID: 1569786

No one has yet mentioned the consequences of the 'Clone' hive being left in this reported error state. I do not want to leave the whole network in the worst case scenario of having no "Last Known Good" available!

Anyone out there help?


Expert Comment

ID: 1569787
You are mailing to a locked question. If you want people to see your postings it must be an open (ie unanswered) question. Your Last Known Good is a local thing so your network should not be at risk. If you are doing cloning to hundreds of machines the way I do, then I strongly suggest that you cut a CD of the master image or have it backed up on DAT tape or some other media. After cloning a machine and then restarting successfully into NT4 are you still getting an error concerning Last Known Good? I hope not because Last Known Good should be updated after a successful boot.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …

600 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