Welcome! Register for a free account (or login). Geeks to Go offers free, quality tech support -- in terms anyone can understand. How does it work? »
Quickly register. Takes only a minute, and it's free. Start a new topic. Ask your question. Wait for an email reply. Infected? View malware cleaning guide »
 
Reply to this topicStart new topic
Command line to DISABLE Network adapter, Command line help
G_Redray
post Apr 6 2006, 01:44 PM
Post #1


New Member
*
Posts: 4
OS: xp



Hello,

I am trying to find a way I can disable the network adapter from the command line.

Any suggestions,
Go to the top of the page
 
+Quote Post
dsenette
post Apr 6 2006, 03:09 PM
Post #2


Ruler of Omicron Persei 8
Group Icon
Posts: 23,241
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


open a command prompt and type netsh press enter
then type interface
then do set interface /? that will display the bellow

CODE

netsh interface>set interface /?

Usage set interface [name = ] IfName
            [ [admin = ] ENABLED|DISABLED
              [connect = ] CONNECTED|DISCONNECTED
              [newname = ] NewName ]

      Sets interface parameters.

      IfName  - the name of the interface
      admin   - whether the interface should be enabled (non-LAN only).
      connect - whether to connect the interface (non-LAN only).
      newname - new name for the interface (LAN only).

      Notes:
      - At least one option other than the name must be specified.
      - If connect = CONNECTED is specified, then the interface
        is automatically enabled even if the admin = DISABLED
        option is specified.


netsh interface>


now...what you can actually do with that...i'm not sure...never needed to disable an interface from a command line....why do you need to do such a thing?
Go to the top of the page
 
+Quote Post
G_Redray
post Apr 7 2006, 05:22 AM
Post #3


New Member
*
Posts: 4
OS: xp



I have a college instructor that as posed this question! It would also be useful because when we set up new users we sometimes need to disable the network adapter. We are ususally setting up new computers from the command line, be nice to know!

Thanks



CODE

netsh interface>set interface /?

Usage set interface [name = ] IfName
            [ [admin = ] ENABLED|DISABLED
              [connect = ] CONNECTED|DISCONNECTED
              [newname = ] NewName ]

      Sets interface parameters.

      IfName  - the name of the interface
      admin   - whether the interface should be enabled (non-LAN only).
      connect - whether to connect the interface (non-LAN only).
      newname - new name for the interface (LAN only).

      Notes:
      - At least one option other than the name must be specified.
      - If connect = CONNECTED is specified, then the interface
        is automatically enabled even if the admin = DISABLED
        option is specified.
netsh interface>


now...what you can actually do with that...i'm not sure...never needed to disable an interface from a command line....why do you need to do such a thing?
[/quote]
Go to the top of the page
 
+Quote Post
gerryf
post Apr 7 2006, 07:05 AM
Post #4


Retired Staff
Group Icon
Posts: 11,365
OS: windows 98, xp, 2000, linux



Had a service once that loaded at startup that accessed the network and would crash the computer..disabling the NIC allowed the PC to start to repair the issue.

Course, unplugging the card did the same thing wink.gif
Go to the top of the page
 
+Quote Post
dsenette
post Apr 7 2006, 08:43 AM
Post #5


Ruler of Omicron Persei 8
Group Icon
Posts: 23,241
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


http://www.microsoft.com/resources/documen...e.mspx?mfr=true here's a reference on disabeling a driver or service from RC

Go to the top of the page
 
+Quote Post
G_Redray
post Apr 8 2006, 09:11 AM
Post #6


New Member
*
Posts: 4
OS: xp



Thanks,

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   0 / 410 14th July 2005 - 02:48 PM
StogieBoy started - last by StogieBoy
No New Posts   9 / 622 28th June 2007 - 11:04 AM
dustbegone1xyz started - last by anicram
No New Posts   6 / 389 24th September 2009 - 02:59 PM
diggeryo started - last by diggeryo
No New Posts   1 / 80 1st December 2009 - 11:36 PM
brettxw started - last by brettxw

RSS Time is now: 9th February 2010 - 10:44 AM

Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm. However, we do not guarantee that they are accurate and they are to be used at your own risk. All trademarks mentioned on this page are the property of their respective owners.

© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy | Advertising