Results 1 to 2 of 2

Thread: Interface Enable/Disable mystery using Netsh ?

  1. #1
    Vilius Guest

    Interface Enable/Disable mystery using Netsh ?

    Hi,

    I just wanted simple thing - Enable/Disable my network interfaces using
    command line interface.
    I found this netsh interface context command:
    netsh interface> set interface name="local area connection"
    admin=enable/disable
    And it works fine.
    I use another command to display list, state of interfaces:
    netsh interface> show intercace
    !!! And it ALWAYS displays "Enabled" in "admin state" column ! - It doesn't
    matter if interface is disabled or enabled - all interfaces are always
    displayed as Enabled(admin state).

    I misunderstanding something or what ? How do I display real state of my
    interfaces ?
    Please explain me.

    thanks in advance
    Vilius



  2. #2
    Robert L. \(MS-MVP\) Guest

    Re: Interface Enable/Disable mystery using Netsh ?

    netsh behaves differently on different Windows versions. You may try netsh
    interface set interface "Local Area Connection" DISABLED. Also, if connect =
    CONNECTED is specified, then the interface is automatically enabled even if
    the admin = DISABLED option is specified. So, you may add connect =
    disconnect. This link may help too.
    netsh command
    Netsh is a command-line scripting utility that allows you to, either
    locally or remotely, display, modify or script the network configuration of
    a computer ...
    www.chicagotech.net/netsh.htm


    --
    Bob Lin, MS-MVP, MCSE & CNE
    Networking, Internet, Routing, VPN Troubleshooting on
    http://www.ChicagoTech.net
    How to Setup Windows, Network, VPN & Remote Access on
    http://www.HowToNetworking.com
    "Vilius" <v_mockunas@yahoo.com> wrote in message
    news:Ok6m90AKJHA.5232@TK2MSFTNGP05.phx.gbl...
    > Hi,
    >
    > I just wanted simple thing - Enable/Disable my network interfaces using
    > command line interface.
    > I found this netsh interface context command:
    > netsh interface> set interface name="local area connection"
    > admin=enable/disable
    > And it works fine.
    > I use another command to display list, state of interfaces:
    > netsh interface> show intercace
    > !!! And it ALWAYS displays "Enabled" in "admin state" column ! - It
    > doesn't matter if interface is disabled or enabled - all interfaces are
    > always displayed as Enabled(admin state).
    >
    > I misunderstanding something or what ? How do I display real state of my
    > interfaces ?
    > Please explain me.
    >
    > thanks in advance
    > Vilius
    >
    >



Similar Threads

  1. How to disable the on-board VGA and enable pci-e
    By John Bongiovi in forum Motherboard Processor & RAM
    Replies: 2
    Last Post: 11-01-2011, 12:20 AM
  2. Enable and disable the HyperThreading
    By asmiA in forum Operating Systems
    Replies: 3
    Last Post: 26-08-2009, 04:45 PM
  3. Replies: 3
    Last Post: 01-01-2009, 04:59 PM
  4. Usb Enable Disable
    By kulkarniquiet in forum Software Development
    Replies: 1
    Last Post: 22-10-2007, 07:43 PM
  5. Where is in IE 7 enable/disable javascript?
    By Jack in forum Vista Help
    Replies: 3
    Last Post: 06-04-2007, 06:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,007,895.69171 seconds with 16 queries