![]() |


|
|||||||
| Hardware & Software Discussion Hardware and Software discussion and troubleshooting. Tweakers and Overclockers welcome! |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
command to enable/disable network adapter
Windows XP Home
I can right-click on a network adapter in "Network Connections" to enable or disable the adapter itself. I need a command (a la commandline) which I can execute to perform these (enable/disable) functions. Any ideas?
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
|
|
#2 (permalink) | |
|
Join Date: Jun 2005
Posts: 2,471
|
Re: command to enable/disable network adapter
Here's this from chicagotech.net, perhaps not quite what you're looking for. Basically looks like just releasing the IP from your computer, but not disabling the card itself.
Quote:
__________________
![]() [squadl] "I am the prettiest african-american, vietnamese..cong..person." -SugarNCamo |
|
|
|
|
| Sponsored links | |
|
|
|
|
|
#3 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: command to enable/disable network adapter
That, indeed, is not what I'm seeking. Thank you, though.
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
|
|
#4 (permalink) |
|
Join Date: Jun 2005
Posts: 2,471
|
Re: command to enable/disable network adapter
Also just found this, which also may not be what you're looking for. But hey, I'm trying. :P
http://support.microsoft.com/default...;EN-US;Q311272
__________________
![]() [squadl] "I am the prettiest african-american, vietnamese..cong..person." -SugarNCamo |
|
|
|
|
|
#5 (permalink) |
|
Join Date: Jun 2005
Location: Hamilton, Ontario, Canada
Posts: 648
|
Re: command to enable/disable network adapter
Hey, that's a cool little utility, Tarpan. I'm glad Wyz asked.
__________________
|TG-1stMIP|Manner 1st Mechanized Infantry Platoon (C-Team) Please donate your spare CPU cycles to help fight diseases like cancer. |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Aug 2005
Location: San Pablo, California
Posts: 4,565
|
Re: command to enable/disable network adapter
In principle, "netsh interface set interface name=IFname admin=disable" should do it, but it looks like Win2k is rejecting this command for no good reason. I suspect this is broken until Win2003. (If this was open source, I'd just fix it and submit a patch.)
__________________
|
|
|
|
| Sponsored links | |
|
|
|
|
|
#7 (permalink) |
![]() Join Date: Jan 2006
Location: United states, TN
Age: 36
Posts: 2,988
|
Re: command to enable/disable network adapter
I can't think of a way to actually "disable" the card. Releasing the IP would work.
From the commandline type: "ipconfig /release " That will release the ip completely. To get a new ip it would be: "ipconfig /renew" To check current ip and such try this: "ipconfig /all" Hope this helps |
|
|
|
|
|
#8 (permalink) |
|
Join Date: Aug 2005
Location: San Pablo, California
Posts: 4,565
|
Re: command to enable/disable network adapter
This is one of those things that drives me nuts about GUI-centric systems like Windows. All the control mechanisms visible to users require GUI manipulation. Scripting is an afterthought. You have to buy the server class OS (eg. Win2003) to get this kind of functionality.
With *nix, you build the command line interface first, then build a GUI front end to invoke the command line. This makes it easy to change the UI. For instance, you can create a web-based front-end, or otherwise frob the system from arbitrary inputs. You could even build a custom hardware front panel with bat-handle switches and write some glue code to make it operate your standard command line utility to bring the network up and down. I'll bet Wyzcrak wants to set up a pressure mat so that his dog can turn his network card on and off! ![]()
__________________
|
|
|
|
|
|
#9 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: command to enable/disable network adapter
My purpose in this was to disable my first network adapter, as its being enabled while my sound card is in use causes unsatisfactory video performance on my machine (long story, not relevant). This is never a problem unles I'm gaming in some sort of fullscreen engine.
I thought that the first adapter being enabled at all was all that was necessary for the performance problem. I decided to try "releasing" the adapter, and that seems to remove the performance problem (network packets travel over my second network adapter, which does not cause this performance problem). Despite the fact that gameplay's data travels over the second adapter, I suppose the network-quering data/etc that travels over the first adapter while I'm playing on the second is what was causing the performance problem. Stopping that data, even though the first adapter remains "enabled," seems to have been sufficient. So, release/renew, while not what I wanted, has served my needs nicely enough. HLSW (using the commandline join/leave commands) automatically releases the first adapter when I join a server and automatically renews it when I come out of the server (I have need of the second adapter being enabled when I'm not in a game.), leaving me with most satisfactory system performance in the game. Many thanks to those who contributed.
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
|
|
#10 (permalink) | |
![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: Rhode Island, USA
Age: 36
Posts: 8,993
|
Re: command to enable/disable network adapter
Quote:
__________________
Diplomacy is the art of saying "good doggie" while looking for a bigger stick.
|
|
|
|
|
| Sponsored links | |
|
|
|
|
|
#11 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: command to enable/disable network adapter
It's on-board, as is the sound. Neither can be moved.
Forgive the confusion in the thread. I had grand visions of not bothering you folks with more situation-specific details than need be. Sure, the solution I've got now may not be ideal, but the older I get, the less I care about ideal when it comes to computers. The damn thing is doing what I want now, and I'm happy. ![]() Many thanks again to everyone who helped.
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
|
|
#12 (permalink) |
|
Join Date: May 2003
Location: Vestavia Hills, AL
Age: 38
Posts: 407
|
Re: command to enable/disable network adapter
Not to unnecessarily revive an old thread, but this may apply too: http://www.kbalertz.com/262265/recei...s.Windows.aspx
|
|
|
|
|
|
#13 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: command to enable/disable network adapter
Thanks, Rampage! I appreciate the find. That'll come in handy, later if not now.
![]()
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tactical Gamer joins the GameSurge IRC Network! | Apophis | Tactical Gamer News Items | 8 | 08-09-2007 11:06 PM |
| "Massive Assault Network 2" | Gambit7 | Strategy Games (Strat) | 0 | 05-06-2006 04:01 PM |

