Command to disable wireless?

Discussion in 'alt.windows7.general' started by Stan Brown, Jul 22, 2012.

  1. Stan Brown

    Stan Brown Guest

    Is there any kind of command-lie command or shortcut to enable and
    disable wireless? The key combination on my Dell Inspiron is Fn-F2,
    but there's no combination on my external illuminated keyboard.

    It's Win 7 Home Premium, if that matters.

    --
    Stan Brown, Oak Road Systems, Tompkins County, New York, USA
    http://OakRoadSystems.com
    Shikata ga nai...
     
    Stan Brown, Jul 22, 2012
    #1
    1. Advertisements

  2. Stan Brown

    Char Jackson Guest

    On Sat, 21 Jul 2012 20:46:16 -0400, Stan Brown
    <> wrote:

    >
    >Is there any kind of command-lie command or shortcut to enable and
    >disable wireless? The key combination on my Dell Inspiron is Fn-F2,
    >but there's no combination on my external illuminated keyboard.
    >
    >It's Win 7 Home Premium, if that matters.


    Here's one solution, (not sure if it's for Win 7), and where there's
    one, there may be more, so I'd say it's definitely possible.

    <http://wlanbook.com/enable-disable-wireless-card-command-line/>

    --

    Char Jackson
     
    Char Jackson, Jul 22, 2012
    #2
    1. Advertisements

  3. Stan Brown

    Stan Brown Guest

    On Sat, 21 Jul 2012 21:01:39 -0500, Char Jackson wrote:
    >
    > On Sat, 21 Jul 2012 20:46:16 -0400, Stan Brown
    > <> wrote:
    >
    > >
    > >Is there any kind of command-lie command or shortcut to enable and
    > >disable wireless? The key combination on my Dell Inspiron is Fn-F2,
    > >but there's no combination on my external illuminated keyboard.
    > >
    > >It's Win 7 Home Premium, if that matters.

    >
    > Here's one solution, (not sure if it's for Win 7), and where there's
    > one, there may be more, so I'd say it's definitely possible.
    >
    > <http://wlanbook.com/enable-disable-wireless-card-command-line/>


    Thanks, Char. I should have done a Web search first on my own.

    I did look at devcon, but according to this article it doesn't work
    on 64-bit Windows; you have to download a 620 MB file and extract the
    devcon from that.
    http://superuser.com/questions/104400/enable-disable-wireless-
    interface-in-a-bat-file

    But you got me started. I'll keep looking, which I should have done
    before I posted.

    ....

    And I have the answer.

    To disable:
    netsh interface set interface "Wireless Network Connection" disabled

    To enable:
    netsh interface set interface "Wireless Network Connection" enabled

    You must do this within a command prompt with administrative
    privilege. And of course you need to use the correct interface name,
    which you can find from:
    netsh interface show interface


    Basic instructions are here:
    http://sudonetworks.com/wiki/index.php?
    title=Windows_Wireless_Control_with_netsh

    The first time I ran the disable command, I got the error message "An
    interface with this name is not registered with the router." I found
    the explanation (elevated privilege required) here:

    http://computerhelpforums.net/topic/278-an-interface-with-this-name-
    is-not-registered-with-the-router/

    You'd think the error message could have said that, but "oh well!"

    Note to self: Do a net search before asking questions in future. (I
    guess I just subconsciously assumed no one before me had ever wanted
    to do this, which is a pretty silly assumption.)

    --
    Stan Brown, Oak Road Systems, Tompkins County, New York, USA
    http://OakRoadSystems.com
    Shikata ga nai...
     
    Stan Brown, Jul 22, 2012
    #3
  4. Stan Brown

    Char Jackson Guest

    On Sat, 21 Jul 2012 20:46:16 -0400, Stan Brown
    <> wrote:

    >
    >Is there any kind of command-lie command or shortcut to enable and
    >disable wireless? The key combination on my Dell Inspiron is Fn-F2,
    >but there's no combination on my external illuminated keyboard.
    >
    >It's Win 7 Home Premium, if that matters.


    I like this solution better than what I posted earlier. Nothing to
    download, it's all built in. Make two batch files if you like, or make
    a single batch file that checks the current status and toggles it.
    Create a shortcut, place it where it's convenient, and Bob's your
    uncle.

    <http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/enabledisable-network-interface-via-command-line/17a21634-c5dd-4038-bc0a-d739209f5081>


    --

    Char Jackson
     
    Char Jackson, Jul 22, 2012
    #4
  5. Stan Brown

    Char Jackson Guest

    On Sat, 21 Jul 2012 23:34:16 -0400, Stan Brown
    <> wrote:

    >On Sat, 21 Jul 2012 21:01:39 -0500, Char Jackson wrote:
    >>
    >> On Sat, 21 Jul 2012 20:46:16 -0400, Stan Brown
    >> <> wrote:
    >>
    >> >
    >> >Is there any kind of command-lie command or shortcut to enable and
    >> >disable wireless? The key combination on my Dell Inspiron is Fn-F2,
    >> >but there's no combination on my external illuminated keyboard.
    >> >
    >> >It's Win 7 Home Premium, if that matters.

    >>
    >> Here's one solution, (not sure if it's for Win 7), and where there's
    >> one, there may be more, so I'd say it's definitely possible.
    >>
    >> <http://wlanbook.com/enable-disable-wireless-card-command-line/>

    >
    >Thanks, Char. I should have done a Web search first on my own.
    >
    >I did look at devcon, but according to this article it doesn't work
    >on 64-bit Windows; you have to download a 620 MB file and extract the
    >devcon from that.
    >http://superuser.com/questions/104400/enable-disable-wireless-
    >interface-in-a-bat-file
    >
    >But you got me started. I'll keep looking, which I should have done
    >before I posted.
    >
    >...
    >
    >And I have the answer.
    >
    >To disable:
    >netsh interface set interface "Wireless Network Connection" disabled
    >
    >To enable:
    >netsh interface set interface "Wireless Network Connection" enabled
    >
    >You must do this within a command prompt with administrative
    >privilege. And of course you need to use the correct interface name,
    >which you can find from:
    >netsh interface show interface
    >
    >
    >Basic instructions are here:
    >http://sudonetworks.com/wiki/index.php?
    >title=Windows_Wireless_Control_with_netsh
    >
    >The first time I ran the disable command, I got the error message "An
    >interface with this name is not registered with the router." I found
    >the explanation (elevated privilege required) here:
    >
    >http://computerhelpforums.net/topic/278-an-interface-with-this-name-
    >is-not-registered-with-the-router/
    >
    >You'd think the error message could have said that, but "oh well!"
    >
    >Note to self: Do a net search before asking questions in future. (I
    >guess I just subconsciously assumed no one before me had ever wanted
    >to do this, which is a pretty silly assumption.)


    There you go then. :)

    I just posted another netsh-based solution before I saw your post.
    Feel free to ignore it if you like.

    --

    Char Jackson
     
    Char Jackson, Jul 22, 2012
    #5
  6. Stan Brown

    Stan Brown Guest

    Stan Brown, Jul 22, 2012
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Cameron

    Command prompt fails to open

    Cameron, Jul 17, 2009, in forum: Windows 7 Support
    Replies:
    2
    Views:
    2,088
    Cameron
    Jul 18, 2009
  2. KIZMET2010
    Replies:
    1
    Views:
    3,109
    clifford_cooley
    Feb 21, 2010
  3. Saidas

    Command Sending Problem

    Saidas, Mar 6, 2010, in forum: Windows 7 Support
    Replies:
    0
    Views:
    1,274
    Saidas
    Mar 6, 2010
  4. davehc

    Change appearance of Command Window

    davehc, Jul 24, 2010, in forum: User Submitted Articles
    Replies:
    5
    Views:
    9,281
    Nibiru2012
    Jul 24, 2010
  5. Stan Brown

    Elevating privilege in command prompt

    Stan Brown, Aug 15, 2010, in forum: alt.windows7.general
    Replies:
    15
    Views:
    1,653
    Stan Brown
    Aug 17, 2010
  6. machinemessiah

    Disable all wireless sevices/devices on Win 7

    machinemessiah, Sep 8, 2010, in forum: alt.windows7.general
    Replies:
    17
    Views:
    2,262
    GlowingBlueMist
    Sep 10, 2010
  7. Walldog
    Replies:
    2
    Views:
    4,554
    bassfisher6522
    Jan 8, 2012
  8. TOSH1
    Replies:
    4
    Views:
    2,801
    RuzBox
    Oct 6, 2012
Loading...