How to enable or disable local area connection in Windows XP using command mode?

Sreedhar Gudibande G N February 19, 2013
Pinterest Stumbleupon Whatsapp

How to enable or disable local area connection in Windows XP using command mode?

  1. steven
    May 22, 2013 at 2:21 pm

    Yo all beating by the bush...simple

    Click Start, click Run, type %windir%\network diagnostic\xpnetdiag.exe, and then click OK.

  2. jw07
    March 14, 2013 at 6:07 pm

    Any idea on how i can disable the local area connection to not communicate with windows 7 and only allow the actual local area conection I.E. the network flug? I have a Pi system that only works in XP mode and im running a windows 7 laptop. Cant get the Pi system to comunicate with my laptop because the local area connection is only reconizing the network adapter and im assuming my internet conection is coming from windows 7.

  3. Prashant Mirjankar
    February 25, 2013 at 6:03 am

    Enabling:

    netsh interface set interface "Local Area Connection " ENABLE

    Disabling:

    netsh interface set interface "Local Area Connection " DISABLE

    Note:- If you have changed the default name of the connection then try with that name in the place of "Local Area Connection"

  4. Jan Fritsch
    February 20, 2013 at 12:39 am

    As it was suggested netsh may be the easiest option with limited use.

    You can get all the adapter names using:
    netsh interface show interface

    You can disable an adapter using:
    netsh interface set "name" disabled

    Depending on what you want to use the command for you may run into the problem that an adapter is not named e.g. "Local Area Connection" but something else e.g. someone renamed it to "network 1".

    Meaning, if you use the command in a script it won't work with renamed or in general differently named adapters. For this use you will have to do additional coding as in parsing the adapters names out of the first command and then disable them one by one

  5. Nevzat Akkaya
    February 19, 2013 at 7:02 pm

    Using NETSH tool in command line, you can do that.

    Usage :
    netsh interface set interface DISABLED or ENABLED

    For example to disable an interface with its default name "Local Area Connection" run:
    netsh interface set interface "Local Area Connection" DISABLED

    To enable the interface, you'd then run:
    netsh interface set interface "Local Area Connection" ENABLED

    That's it.

  6. Yavisht Katgara
    February 19, 2013 at 6:54 pm

    Your looking for the netsh commant under the dos docs mentioned below

    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

  7. Yavisht Katgara
    February 19, 2013 at 6:49 pm

    Check this link out , Im sure it will be helpful
    http://wlanbook.com/enable-disable-wireless-card-command-line/

  8. ha14
    February 19, 2013 at 5:15 pm

    to disable an interface with its default name Local Area Connection, run:
    netsh interface set interface Local Area Connection DISABLED
    To enable the interface, you'd then run:
    netsh interface set interface Local Area Connection ENABLED

    if the netsh for windows xp do not disable try this
    http://itcookbook.net/blog/enabling-and-disabling-nics-commandline-windows
    .
    Enable/Disable LAN interface by command prompt in Windows XP
    http://blog.thilina.org/2011/06/enabledisable-lan-interface-by-command.html

    You receive an error message when you use Netsh.exe to enable or disable a network adapter in Windows XP and in Windows 2000
    http://support.microsoft.com/kb/262265

    Devcon utility will be needed if netsh do not disable/enable LAN
    Enable/Disable Wireless Card from Command Line
    http://wlanbook.com/enable-disable-wireless-card-command-line/
    https://mysite.uchicago.edu/personal/bsdad_rcarter/Blog/Lists/Posts/Post.aspx?ID=61

    Windows XP: Unable To Disable Local Area Connection. Error “It is not possible to disable the connection at this time.”
    http://www.technipages.com/xp-unable-to-disable-local-area-connection-error-it-is-not-possible-to-disable-the-connection-at-this-time.html

Ads by Google