Sunday, March 22, 2009

NETSH, edit network settings from the command line

just run NETSH from a cmd window and you will see what i mean.

it can do lots of things, to best explain ill just give you a list of examples.

to set a NIC to use static
netsh interface ip set address name="Local Area Connection" static 192.168.0.2 255.255.255.0 192.168.0.1 1

to set a NIC to use DHCP
netsh interface ip set address "Local Area Connection" dhcp

it supports scripting files also

full details about the NETSH usage is here: http://support.microsoft.com/?kbid=242468

No comments:

Post a Comment