Disabling at application level a nic (network interface) on Windows
Posted
by
Leandro
on Super User
See other posts from Super User
or by Leandro
Published on 2012-05-31T16:27:45Z
Indexed on
2012/05/31
16:43 UTC
Read the original article
Hit count: 331
How can I disable at application level a network interface?
The main question is this:
If I disable the nic trough wmic (win7) or devcon (XP), the "plug and play" of a wired nic doesn't work any more. For example, if the user put the cable on a disabled nic, the OS doesn't know about it.
So I need to persist the enable condition but disabling the networking like a disable nic.
There's some API, network configuration (routing, changing ip, changing gateway, any), .NET Framework resource (Only NetFramework 2.0) or do you can think in any workaround to do this?
Suggest and ideas also will be treated as a solution.
Thanks and kind regards.
© Super User or respective owner