Re: Switch between 10Mb and 100Mb

Tech-Archive recommends: Fix windows errors by optimizing your registry



I was thinking it would have to be WMI. I don't think there is any other
option through .NET

In the Configuration... Advanced tab of a network port, a person is able to
select the speed and duplex, so I'm guessing my program would be doing the
same thing. My question, is even if I set the speed of my port to 10Mb, is
that really going to send data at a 10Mb/sec rate? What happens is I
plugged into a switch that is 100Mb ?


"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin@xxxxxxxxx> wrote in
message
news:99df88ec-4c14-4c51-81c4-6000c818153d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 5, 5:11 pm, "Jason" <nos...@xxxxxxxx> wrote:
Hello

I've got a need to be able to switch, or set the speed for my NIC between
10Mb and 100Mb for parametric testing purposes.

Using C# how can I accomplish, or can it even be done?

Thanks

I'm not sure if you can do it. but if you can you have to use WMI. My
advice would be to first check if it's possible at all. then how it's
done with WMI and finally write the C# code that does it using WMI


.



Relevant Pages

  • Re: Forcing Duplex settings
    ... I'm not sure if we have tested it in an testlab enviroment. ... I'll take your tip and ask the WMI list, ... > Hi Kenneth, ... even though it was matched to the switch. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Forcing Duplex settings
    ... The problems I had, were that I thought I was being clever matching the NIC to the switch, but when I tested it, everything to do with the network was messed up. ... It may be a case of hacking very specific registry keys for the NIC driver in question, or there may be a way to use NDIS API calls, or the NIC maker may have a developers guide or WMI provider. ... What kind of problems have you been experiencing when you set the NIC's to 100Full insted of Auto? ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: See if network is down?
    ... > connect through hub (switch) and you'll unplug from the hub(switch ... Unless I am mistaken this site uses WMI polling which is wasteful. ...
    (microsoft.public.win32.programmer.networks)
  • Re: See if network is down?
    ... If you check that polling in compare with WMI notifications you'll see twice ... >> connect through hub (switch) and you'll unplug from the hub(switch ...
    (microsoft.public.win32.programmer.networks)
  • "The WMI information might be corrupted"
    ... restoration ot the WMI Repository, ... manually restart WMI ... of the advanced tab in the properties window. ...
    (microsoft.public.windowsxp.network_web)