Is there a script which can be used to setup the TCP/IP details like
IP address, netmask, gateway, DNS server, etc.
Being able to create something like that from the current settings,
and modifying it after would be really useful.
You can use the "netsh" command in a batch file.
To specify a fixed address:
netsh interface ip set address <connection> static <ip> <mask>
<gateway> <gateway metric>
For example:
netsh interface ip set address "Local Area Connection" static
192.168.0.100 255.255.255.0 192.168.0.254 10
netsh interface ip set address "Wireless Network Connection" static
10.20.30.100 255.0.0.0 10.0.0.1 20
To specify a DHCP address:
netsh interface ip set address <connection> dhcp
For example:
netsh interface ip set address "Local Area Connection" dhcp
To save the current configuration:
netsh interface ip dump >ip.dat
To restore a saved configuration from file ip.dat:
netsh exec ip.dat
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)
Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.
Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com