By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,959 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,959 IT Pros & Developers. It's quick & easy.

disable/enable a network card using c#

P: n/a
Hi,

Any body know how to disable a network card using c# ?
Or to simulate a "cablbe unplugged". So the network card
sysmbol shows only a red x, however it a ether is still
plugged in.

thanks !

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The answer has to revolve somewhere around WMI. Google on WMI and C# and
you'll get plenty of advice. Here's one interesting article that says (and
I have no first hand knowledge with setting hardware properties using WMI in
C#) that the .Net WMI classes will not let you set properties. If that is
actually the case, then you'd have to use interop or COM to get to the WMI
SDK.

HTH

Dale Preston
MCAD, MCDBA, MCSE

"knopper" <on*****@gmx.net> wrote in message
news:12****************************@phx.gbl...
Hi,

Any body know how to disable a network card using c# ?
Or to simulate a "cablbe unplugged". So the network card
sysmbol shows only a red x, however it a ether is still
plugged in.

thanks !

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.