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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top