How do I programmatically change the IP address of a workstation?

There is probably a good way to do this (on Windows XP) in VBScript (or some other scripting language) with registry settings. Does anyone know how?

+2


source to share


1 answer


Ok if you don't mind just doing a normal batch script then you can use the netsh tool

It's been a while, but I believe the command looks something like this:



netsh interface ipv4 set address name="Local Area Connection" source=static address=<ip address> mask=<netmask> gateway=<router ip address>

      

As far as vbscript and such I have no idea, but I'm sure it is possible.

+5


source







All Articles