Solved

Changing IP address via registry change?

Posted on 1998-08-03
6
9,425 Views
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?

regards
Tom.
0
Comment
Question by:tombo
  • 3
  • 2
6 Comments
 
LVL 37

Expert Comment

by:bbao
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,
0
 

Author Comment

by:tombo
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?
0
 
LVL 1

Accepted Solution

by:
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.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:tombo
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'

Tom.
0
 

Author Comment

by:tombo
ID: 1569786
Hi,

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?

cheers
Tom.
0
 
LVL 1

Expert Comment

by:Kitsune
ID: 1569787
Tom,
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.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 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