PC Review


Reply
Thread Tools Rate Thread

disable/enable a network card using c#

 
 
knopper
Guest
Posts: n/a
 
      14th Apr 2005
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 !

 
Reply With Quote
 
 
 
 
Dale Preston
Guest
Posts: n/a
 
      15th Apr 2005
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" <(E-Mail Removed)> wrote in message
news:123801c540fe$cb5c93c0$(E-Mail Removed)...
> 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 !
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
enable/disable the TV OUT on a graphic card? frederik.anrys@gmail.com ATI Video Cards 0 9th Jun 2005 10:35 PM
enable/disable the TV OUT on a graphic card Gert.Leunen@newsgroups.nospam Windows XP Embedded 0 9th Jun 2005 10:25 PM
Have to disable and enable network card to make it work on reboot =?Utf-8?B?MThTY29vYno=?= Windows XP Networking 2 1st Feb 2005 02:09 AM
command to enable\disable network card Elton Seng Yan Thung Microsoft Windows 2000 Networking 2 25th Jun 2004 05:52 PM
Enable/Disable Network Card =?Utf-8?B?Rmls?= Microsoft Dot NET 1 10th Feb 2004 01:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 AM.