Go Back   Tactical Gamer > General Forums > Hardware & Software Discussion


Hardware & Software Discussion Hardware and Software discussion and troubleshooting. Tweakers and Overclockers welcome!

Reply
 
Thread Tools
Old 01-11-2006, 04:05 PM   #1 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Old 01-11-2006, 04:11 PM   #2 (permalink)
 
SmokingTarpan's Avatar
 
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:
How to enable/disable LAN from command line temporally

You can created a batch file that include ipconfig /release or ipconfig /renew, and use schedule to run it. If you use static IP, you may use netsh instead of ipconfig command. If you want to one way access, you may manage it by using server service and workstation service.
http://www.chicagotech.net/connectiv...e%20temporally
__________________

[squadl]
"I am the prettiest african-american, vietnamese..cong..person." -SugarNCamo
SmokingTarpan is offline   Reply With Quote
Sponsored links
Old 01-11-2006, 04:15 PM   #3 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Old 01-11-2006, 04:20 PM   #4 (permalink)
 
SmokingTarpan's Avatar
 
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
SmokingTarpan is offline   Reply With Quote
Old 01-11-2006, 04:25 PM   #5 (permalink)
 
KeithMann's Avatar
 
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.
KeithMann is offline   Reply With Quote
Old 01-11-2006, 04:34 PM   #6 (permalink)
 
ScratchMonkey's Avatar
 
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.)
__________________
ScratchMonkey is offline   Reply With Quote
Sponsored links
Old 01-11-2006, 06:33 PM   #7 (permalink)
 
Wimpinator's Avatar
 
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
Wimpinator is offline   Reply With Quote
Old 01-11-2006, 11:31 PM   #8 (permalink)
 
ScratchMonkey's Avatar
 
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!
__________________
ScratchMonkey is offline   Reply With Quote
Old 01-12-2006, 03:31 AM   #9 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Old 01-12-2006, 08:31 AM   #10 (permalink)



 
Apophis's Avatar
 
Join Date: Oct 2001
Location: Rhode Island, USA
Age: 36
Posts: 8,993
Re: command to enable/disable network adapter

Quote:
Originally Posted by Wyzcrak
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.
This helps a little more.. Is this first network adapter on-board or is it a PCI card? If it is the latter, try moving it to another PCI slot.
__________________
Diplomacy is the art of saying "good doggie" while looking for a bigger stick.
Apophis is offline   Reply With Quote
Sponsored links
Old 01-12-2006, 03:25 PM   #11 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Old 01-20-2006, 03:44 PM   #12 (permalink)
 
Rampage's Avatar
 
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
Rampage is offline   Reply With Quote
Old 01-20-2006, 03:55 PM   #13 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
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


All times are GMT -4. The time now is 09:57 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved