Hi,
Sure, you can use netsh command line utility... Here are some examples...
Create a batch file from these entries. Name the batch file e.g. dhcp.bat
and whenever you want to switch to dhcp configuration run the batch file...
*********************************
netsh interface ip set address name="Local Area Connection" source=dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp
netsh interface ip set wins name="Local Area Connection" source=dhcp
*********************************
Create another batch file from these entries. Name the batch file e.g.
static.bat and run it whenever you want to switch to static settings...
***********************************
netsh interface ip set address "Local Area Connection" static 10.0.0.9
255.0.0.0 10.0.0.1 1
netsh interface ip set dns "Local Area Connection" static 10.0.0.1 primary
netsh interface ip set wins "Local Area Connection" static 10.0.0.1
***********************************
Replace above IP addresses with the ones that will work on your network.
I hope this helps you out,
--
Mike
Microsoft MVP - Windows Security
"boe" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello,
>
> I have a Windows box that I'd like to make a shortcut of some kind that
> would allow me to quickly switch all the IP settings - e.g. address,
> subnet, gateway, DHCP, WINS from a static address to DHCP and vice versa.
> Is this possible?
>
>
>
|