Solved

netsh interface set ...DISABLED error : equivalent to disabling WiFi ?

Posted on 2011-02-18
11
4,837 Views
Last Modified: 2012-05-11
Q1:
Is
    netsh interface set interface "Wireless_Interface_name" disabled
equivalent to physically turning off the Wifi (a light blue Antenna
LED) with Fn-Fn key?  Ie will this command turn off the blue LED?

Q2:
There's one EE thread which suggested "devcon ..." command but
I can't find this in my Win XP Professional

Q3:
Need someone to tell me where I went wrong with the command
syntax below :


D:\MRTG>netsh interface show interface

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled                       Dedicated        VMware Network Adapter VMnet1
Enabled                       Dedicated        Wireless Network Connection
Enabled                       Dedicated        VMware Network Adapter VMnet8
Enabled                       Dedicated        Local Area Connection
Enabled                       Internal         Internal
Enabled                       Loopback         Loopback


D:\MRTG>netsh interface set interface "Wireless Network Connection" DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the
correct syntax.

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.



D:\MRTG>netsh interface set interface "Wireless Network Connection"
ADMIN=DISABLED
ADMIN=DISABLED is not an acceptable value for admin.
The parameter is incorrect.



D:\MRTG>netsh interface SHOW interface "Wireless Network Connection"

Wireless Network Connection
  Type:                 Dedicated
  Administrative state: Enabled
  Connect state:


D:\MRTG>netsh interface set interface "Wireless Network Connection" ENABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the
correct syntax.

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.



D:\MRTG>netsh interface set interface "Wireless Network Connection" CONNECTED
CONNECTED is not an acceptable value for admin.
The parameter is incorrect.



D:\MRTG>netsh interface set interface "Wireless Network Connection"
connect=CONNECTED
connect=CONNECTED is not an acceptable value for admin.
The parameter is incorrect.



D:\MRTG>netsh interface set interface "Wireless Network Connection" "ENABLED"
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the
correct syntax.

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.
0
Comment
Question by:sunhux
  • 6
  • 3
  • 2
11 Comments
 
LVL 4

Expert Comment

by:FireW0lf
ID: 34925234
Q3:

netsh interface set interface "Wireless Network Connection" Disable
0
 
LVL 2

Expert Comment

by:FellFreeDom
ID: 34925380
q1 - it's disabling a coonection, like option "disable" in connections center, not your LED =)
q2 - http://support.microsoft.com/kb/311272
q3 - netsh interface set interface "VMware Network Adapter VMnet1" admin=enabled - checked twice - all work fine
0
 

Author Comment

by:sunhux
ID: 34926834

Hi Firew0lf,

is the last word "Disable"  or  "Disabled"  : the help screen indicated it as "Disabled"


Hi FellFreeDom,

I'm not sure why my VMWare NIC appeared twice : how is this related to the WiFi
/ wireless NIC that I'm trying to disable ?
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 4

Expert Comment

by:FireW0lf
ID: 34926850
"DISABLE"

Disabled is a property (read)
Disable is a method (write)

Hope this helps
0
 

Author Comment

by:sunhux
ID: 34926951

I've just tried out Firew0lf's suggestion of using "Disable" & with exact case but no joy :



D:\shareware>netsh interface set interface "Wireless Network Connection" Disab

One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct syntax.

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.


D:\shareware>netsh interface set interface "Wireless Network Connection" admin=Disable
admin=Disable is not an acceptable value for admin.
The parameter is incorrect.

0
 

Author Comment

by:sunhux
ID: 34926992

Hi FellFreeDom,

For devcon, what's the exact command syntax to disable & enable my Wireless NIC?
Below is the output from find command :

D:\devcon\>devcon find * | find/I "wireless"
PCI\VEN_8086&DEV_4227&SUBSYS_10118086&REV_02\4&29E2C51B&0&00E1: Intel(R) PRO/Wir
eless 3945ABG Network Connection
ROOT\DNI_DNEMP\0001                                         : Intel(R) PRO/Wirel
ess 3945ABG Network Connection - Deterministic Network Enhancer Miniport
ROOT\LGL_TVTPKTFILTERMP\0002                                : Intel(R) PRO/Wirel
ess 3945ABG Network Connection - TVT Packet Filter Miniport
ROOT\MS_PSCHEDMP\0002                                       : Intel(R) PRO/Wirel
ess 3945ABG Network Connection - Packet Scheduler Miniport
ROOT\TM_CFWMP\0000                                          : Intel(R) PRO/Wirel
ess 3945ABG Network Connection - Trend Micro Common Firewall Miniport
0
 
LVL 2

Expert Comment

by:FellFreeDom
ID: 34929352
I'm not sure why my VMWare NIC appeared twice : how is this related to the WiFi
/ wireless NIC that I'm trying to disable ?
I've wrote a correct command for disabling wired NIC, let's try to disable wifi nic:
I've renamed my "wireless connection 2" to "WiFi" and wrote a command:
 netsh interface set interface "WiFi" admin=disabled - interface goes down.
 netsh interface set interface "WiFi" admin=enabled - interface is up.
btw about two vmware nics - first for NAT and second for Host-Only - you can check this out at VmWare Virtual Network Editor =)
0
 
LVL 2

Accepted Solution

by:
FellFreeDom earned 500 total points
ID: 34929365
For devcon, what's the exact command syntax to disable & enable my Wireless NIC?
Below is the output from find command :
I think that you can spend a little time yourself to reading the help for devcon.
An device you have to work with:
PCI\VEN_8086&DEV_4227&SUBSYS_10118086&REV_02\4&29E2C51B&0&00E1
0
 

Author Comment

by:sunhux
ID: 34931494

Still no joy from my end despite I've renamed by Wireless NIC to "WirelessNIC" :



C:\>netsh interface show interface | find/i "wireles"
Enabled                       Dedicated        WirelessNIC


C:\>netsh interface set interface "WirelessNIC" admin=disabled
admin=disabled is not an acceptable value for admin.
The parameter is incorrect.



C:\>netsh interface set interface "WirelessNIC" admin=DISABLED
admin=DISABLED is not an acceptable value for admin.
The parameter is incorrect.



C:\>netsh interface set interface "WirelessNIC" DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

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.


C:\>netsh interface set interface "WirelessNIC" DISABLE
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

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.




C:\>netsh interface set interface "WirelessNIC" admin=DISCONNECTED
admin=DISCONNECTED is not an acceptable value for admin.
The parameter is incorrect.



C:\>netsh interface set interface "WirelessNIC" admin="DISABLED"
admin=DISABLED is not an acceptable value for admin.
The parameter is incorrect.



C:\>netsh interface set interface "WirelessNIC" admin="DISABLE"
admin=DISABLE is not an acceptable value for admin.
The parameter is incorrect.
0
 

Author Comment

by:sunhux
ID: 34931517

I read about devcon & tried disabling only
  PCI\VEN_8086&DEV_4227&SUBSYS_10118086&REV_02\4&29E2C51B&0&00E1
but it appears to be disabling several device & still continuing before I Ctrl-C to break it
0
 

Author Closing Comment

by:sunhux
ID: 35274043
ok
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question