(E-Mail Removed) wrote in news:a18ac479-d630-45a0-
abbc-(E-Mail Removed):
> Is there an easy way of changing the IP Address, subnet mask and
> default gateway, via a script.
You could use netsh.exe, present in win2k and winxp
Create a file named "script.txt" and put this code in it after modifying
the values as required:
-----8<-CUT HERE -----
interface
ip
set address name="LAN connection name" source=static addr=192.168.1.2
gateway=192.168.1.1 mask=255.255.255.0 gwmetric=0
set dns name="LAN connection name" source=static addr=212.31.224.5
register=primary
add dns name="LAN connection name" addr=81.88.224.130
quit
-----8<-CUT HERE -----
And execute this:
netsh exec script.txt
Cheers
--
- per aspera sic itur ad astra -
http://spidernik84.altervista.org
Togli "TIFREGO" per contattarmi...