Programmatically enabling NIC

  • Thread starter Thread starter Martin Kremer
  • Start date Start date
M

Martin Kremer

Is it possible to control enabling and disabling of a NIC
from a program or script?
 
From a command prompt;
netsh interface ip set address name="Local Area Connection 2" source=static
addr=192.168.10.10 mask=255.255.255.0 gateway=none

setting the ip address to one in the private and or some unused/unreachable
range.
 
Back
Top