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

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

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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. machinemessiah

    Disable all wireless sevices/devices on Win 7

    machinemessiah, Sep 8, 2010, in forum: alt.windows7.general
    Replies:
    17
    Views:
    1,922
    GlowingBlueMist
    Sep 10, 2010
  2. Greg

    command prompt in Win 7

    Greg, Mar 1, 2011, in forum: alt.windows7.general
    Replies:
    23
    Views:
    3,228
    Char Jackson
    Mar 8, 2011
  3. Walldog
    Replies:
    2
    Views:
    2,596
    bassfisher6522
    Jan 8, 2012
  4. TOSH1
    Replies:
    4
    Views:
    1,938
    RuzBox
    Oct 6, 2012
  5. mark dib

    cmd command

    mark dib, Nov 7, 2012, in forum: Software
    Replies:
    1
    Views:
    652
    TrainableMan
    Nov 7, 2012
Loading...

Share This Page