Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-02-18
11
Medium Priority
?
5,042 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

704 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