PDA

View Full Version : Change IP Address


erikh
03-28-2001, 03:03 AM
I am using VB to change reg settings and I can't figure out how to find the correct key in code to change the IP address for my network card. I know that each network device is enumerated in 'HKLM\System\CurrentControlSet\Services\Class\NetT rans\' but I do not see how to tell which is the network card and which is the modem. 'HKLM\System\CurrentControlSet\Services\Class\Net\ ' contains a key for each device and you can see the difference from there using the 'DriverDesc' string value, but the key name does not necessarily correspond to the key name in '\NetTrans'. Is there a way I am not seeing to use one to get to the other, or am I going about it wrong to begin with?

dthomas731
07-31-2001, 11:34 AM
Regarding the IP settings... We have about 300 pc's at work that we are going to have to re-address in the near future. Do you think it would be feasible to create a small app that would read the registry to find the current IP, then lookup the new IP in a database (using the the old IP) and change that value using an NT Logon Script? This would be much easier that visiting all these pc's. The workstations could be a mix of 95/98/NT/ME & 2000.