bertchen
asked on
Script to change IP
I have a WINNT Wkst, I wanna write a script to change the TCP/IP settings and MS Outlook settings, how do I achieve this ?
TQ.
TQ.
ASKER
I have search thru the entire registry for Windows NT Workstation, what I could find is only DNS entries, no IP, Gateway, subnet mask or broadcast address is there.
Please advise further.
many thanks.
Please advise further.
many thanks.
Look here :
http://www.winternet.com/~sparks/IPChange/IPChange.html
A nice GUI which does similar things is at www.netswitcher.com.
http://www.winternet.com/~sparks/IPChange/IPChange.html
A nice GUI which does similar things is at www.netswitcher.com.
The TCP/IP related registry keys it sounds like you are interested in are related to the particular Network Adapter installed and found in the HKLM\System\CurrentControl Set\Servic es\<"NETAD APTER">\Pa rameters\T CPIP\
You'll see DefaultGateway and IPAddress under there. To determine which key to find <"NETADAPTER">, look under HKLM\System\CurrentControl Set\Servic es\NetBT\A dapters. Once you know where they are, now you can use any Registry editing tool (or even .reg files like mentioned in earlier comments) in a script.
Not sure what Outlook settings you are looking to change.
You'll see DefaultGateway and IPAddress under there. To determine which key to find <"NETADAPTER">, look under HKLM\System\CurrentControl
Not sure what Outlook settings you are looking to change.
Are you still waiting for an answer? You can write a script to edit registry entries for the settings you wish to change... you haven't mentioned which outlook settings...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Any update ?
ASKER
Thanks all.
The easiest way to build this .reg file is to export the desired settings from another registry.
To create custom REG files, you'll need some intelligent scripting tool (PERL, VBScript, awk - grep - sed, etc).
Brenton Carbins
Blueprint Consulting