|
windows
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Disable/Enable "Local Area Connection" using DEVCONHi,
I was following up on a different thread and need to disable/enable a network connection, specifically "Local Area Connection" using a command line utility so that I can package it in a batch file. It turns out that DEVCON may be of help. A thread from 7/05 talks about it, but it doesn't go deep enough to outline the way to get to the connection. The help for devcon is not helping enough to suggest a way to isolate the connection. Can someone with DEVCON experience suggest a way to disable the connection? Novell has a utility called NETSHX that can do it for their networks. This will probably be a nice tip for some people! WINDOWSITPRO seems to have an article that covers this topic but it's for subscribers only. :-| Thanks. Try looking into the netsh command on XP, it should do what you need it to
do. -- Show quoteHide quoteaaron A+,NET+,MCSE 2K/2K3,CNA,CCNA "Max" <M**@discussions.microsoft.com> wrote in message news:AFA795EC-45BC-406C-B4F4-259146F08B02@microsoft.com... > > Hi, > > I was following up on a different thread and need to disable/enable a > network connection, specifically "Local Area Connection" using a command > line > utility so that I can package it in a batch file. It turns out that DEVCON > may be of help. A thread from 7/05 talks about it, but it doesn't go deep > enough to outline the way to get to the connection. The help for devcon is > not helping enough to suggest a way to isolate the connection. > > Can someone with DEVCON experience suggest a way to disable the > connection? > Novell has a utility called NETSHX that can do it for their networks. This > will probably be a nice tip for some people! WINDOWSITPRO seems to have an > article that covers this topic but it's for subscribers only. :-| > > Thanks. > this will find the network adaptor ids
devcon listclass net the string you need is up to the first '&' then for example for my wireless network card this disables it devcon disable PCI\VEN_10EC hth philip ashley Show quoteHide quote "aaron" <aa***@fake.net> wrote in message news:%23FSM1g%23BGHA.1288@TK2MSFTNGP09.phx.gbl... > Try looking into the netsh command on XP, it should do what you need > it to do. > > -- > aaron > A+,NET+,MCSE 2K/2K3,CNA,CCNA > "Max" <M**@discussions.microsoft.com> wrote in message > news:AFA795EC-45BC-406C-B4F4-259146F08B02@microsoft.com... >> >> Hi, >> >> I was following up on a different thread and need to disable/enable a >> network connection, specifically "Local Area Connection" using a >> command line >> utility so that I can package it in a batch file. It turns out that >> DEVCON >> may be of help. A thread from 7/05 talks about it, but it doesn't go >> deep >> enough to outline the way to get to the connection. The help for >> devcon is >> not helping enough to suggest a way to isolate the connection. >> >> Can someone with DEVCON experience suggest a way to disable the >> connection? >> Novell has a utility called NETSHX that can do it for their networks. >> This >> will probably be a nice tip for some people! WINDOWSITPRO seems to >> have an >> article that covers this topic but it's for subscribers only. :-| >> >> Thanks. >> > > Thanks Philip, your answer was right on the dot, in the context!
But ... the bad news is that it works only partially! If you DISABLE from the GUI connection icon, and then try enabling through devcon, it doesn't work. But, then if you ENABLE from the GUI connection icon, and then try disabling through devcon, it will stop the traffic even though the light on the port will stay on (indicating a live connection between the machine and the hub). I'm using regular ethernet port, so there is a light that I can check. So, as the old thread from july 2k5 was suggesting, there seems to be something else that the GUI action of DISABLE from the icon seems to be doing, which is not completely matched by the devcon action. Devcon seems to take care of part of it at the lower layer of data traffic, but not the part that opens/closes the communication signals between the machine and the router. My objective is to basically script the action taken by the GUI part of disabling and enabling a connection. I hope there is some solution to this. Thanks. Show quoteHide quote "Philip Ashley" wrote: > this will find the network adaptor ids > devcon listclass net > the string you need is up to the first '&' > then for example for my wireless network card this disables it > devcon disable PCI\VEN_10EC > > hth > > philip ashley try disabling the corresponding packet scheduler miniport as well
hth philip ashley Show quoteHide quote "Max" <M**@discussions.microsoft.com> wrote in message news:7658DEEB-BE54-46C1-9629-C9EFD332C3DF@microsoft.com... > > Thanks Philip, your answer was right on the dot, in the context! > > But ... the bad news is that it works only partially! > > If you DISABLE from the GUI connection icon, and then try enabling > through > devcon, it doesn't work. But, then if you ENABLE from the GUI > connection > icon, and then try disabling through devcon, it will stop the traffic > even > though the light on the port will stay on (indicating a live > connection > between the machine and the hub). I'm using regular ethernet port, so > there > is a light that I can check. > > So, as the old thread from july 2k5 was suggesting, there seems to be > something else that the GUI action of DISABLE from the icon seems to > be > doing, which is not completely matched by the devcon action. Devcon > seems to > take care of part of it at the lower layer of data traffic, but not > the part > that opens/closes the communication signals between the machine and > the > router. > > My objective is to basically script the action taken by the GUI part > of > disabling and enabling a connection. I hope there is some solution to > this. > > Thanks. > > > > "Philip Ashley" wrote: > >> this will find the network adaptor ids >> devcon listclass net >> the string you need is up to the first '&' >> then for example for my wireless network card this disables it >> devcon disable PCI\VEN_10EC >> >> hth >> >> philip ashley > !!
Warning: I can't recall the exact sequence, but I just ran into a blue screen after tinkering with devcon combined with GUI manipulation (disable/enable) of the connection. Watch out! !!
Please Help me Solve my Networking Problem!
Configuration problem New router connects to net, but... Network only works in one direction LAN Connection not created unless reboot with cable plugged Can't see one system on network Need help on ping issue. I thought I knew this stuff. Connect Limit Reached DNS not resolving cannot log on to windows after opening R D C |
|||||||||||||||||||||||