Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 28, 2016, 08:33:28 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Enable/Disable my net adapters in the laptop  (Read 2365 times)

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Enable/Disable my net adapters in the laptop
« on: September 14, 2014, 10:47:45 AM »
I am trying everything but only get disabled the virtualbox adapter for VM.

This is my script :

rem netsh interface set interface name="Local Area Connection" disable
rem netsh interface set interface name="Local Area Connection" enable
rem Conexión de red inalámbrica
rem Conexión de área local
rem VirtualBox Host-Only Network
netsh interface set interface name="VirtualBox Host-Only Network" disable
netsh interface set interface name="Atheros AR5B93 Wireless Network Adapter" disable
rem encontré buscando en el registro
rem HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{F82F9A1B-61B5-4612-ACB6-2B5F595ED213}\Connection
rem Conexión de área local* 3
netsh interface set interface name="Conexión de área local* 3" disable
rem no deshabilitó la 3
netsh interface set interface name="Conexión de área local* 1" disable
rem tampoco
rem pruebo con Conexión de área local, que ya se que no funciona
rem qué puedo hacer : pues meter todas las de la clave en el registro
rem HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network
rem vamos con todas
netsh interface set interface name="Conexión de área local" disable
netsh interface set interface name="Conexión de área local* 8" disable
netsh interface set interface name="Conexión de red inalámbrica 3" disable
netsh interface set interface name="Conexión de área local* 1" disable
netsh interface set interface name="Conexión de área local* 14" disable
netsh interface set interface name="Conexión de área local* 7" disable
netsh interface set interface name="Conexión de área local*" disable
netsh interface set interface name="Conexión de área local* 10" disable
netsh interface set interface name="Conexión de área local* 2" disable
netsh interface set interface name="Conexión de área local* 13" disable
netsh interface set interface name="Conexión de red inalámbrica" disable
netsh interface set interface name="Conexión de área local* 5" disable
netsh interface set interface name="Conexión de área local* 12" disable
netsh interface set interface name="Conexión de área local* 6" disable
netsh interface set interface name="Conexión de área local* 4" disable
netsh interface set interface name="Conexión de red inalámbrica 2" disable
netsh interface set interface name="Teredo Tunneling Pseudo-Interface" disable
netsh interface set interface name="Conexión de área local* 9" disable
netsh interface set interface name="Conexión de área local* 11" disable
netsh interface set interface name="Conexión de área local* 3" disable
rem Teredo Tunneling Pseudo-Interface
rem Adaptador de tunelización Teredo de Microsoft
rem Atheros AR5B93 Wireless Network Adapter
rem no existe una interfaz con este nombre con el enrutador
rem claves que contienen una entrada al nombre correcto del virtualbox
rem HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network
rem HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Network
rem HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network
rem HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network
rem netsh interface set interface name="Broadcom NetLink (TM) Gigabit Ethernet" disable
rem no funciona : netsh interface set interface name="Conexión de área local" disable
rem no funciona : netsh interface set interface name="Conexión de red inalámbrica" disable
rem solamente se desactivó la de virtualbox , el resto no y me pregunto si tienen que ver los asuntos o si se les puede dar otro nombre en anglosajón
rem creo que tiene que ver con sus nombres reales
rem mirando en el administrador de dispositivos los obtengo
rem Atheros AR5B93 Wireless Network Adapter acer
rem Broadcom NetLink (TM) Gigabit Ethernet acer
rem vamos a probarlo

 :-[

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,634
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #1 on: September 14, 2014, 11:21:23 AM »
As per your other thread's post here asking how to get the adapter names, you can use the following commands:

netsh interface show interface
netsh interface show ip interface

Example output:

Spoiler
skwire@jody-pc ~
$ netsh int show int

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        VMware Network Adapter VMnet1
Enabled        Connected      Dedicated        VMware Network Adapter VMnet8
Enabled        Connected      Dedicated        Local Area Connection
Enabled        Connected      Dedicated        VirtualBox Host-Only Network
Enabled        Disconnected   Dedicated        Local Area Connection 2


skwire@jody-pc ~
$ netsh int ip show int

Idx     Met         MTU          State                Name
---  ----------  ----------  ------------  ---------------------------
  1          50  4294967295  connected     Loopback Pseudo-Interface 1
 11          10        9202  connected     Local Area Connection
 20          20        1500  connected     VMware Network Adapter VMnet1
 21          20        1500  connected     VMware Network Adapter VMnet8
 16           1        1400  disconnected  Local Area Connection* 11
 19          20        1500  connected     VirtualBox Host-Only Network
 24          30        1500  disconnected  Local Area Connection 2



Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #2 on: September 22, 2014, 11:59:36 AM »
Hello again Skwire.
I have spent the worst time with Rollback in a long time .
Lost data even.
But now time to retake.
Best Regards.
i will try and comment
 :-*

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #3 on: September 22, 2014, 01:03:20 PM »
I am thinking about to try in english !!!!!!!!
It's not the name and no appear in no place, but.....

 :-[

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #4 on: September 22, 2014, 01:06:08 PM »
Please do you know how to tell in english

"Conexión de red inalámbrica"

may be

wifi wireless connection

or

wireless connection

or

network wireless connection

?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,751
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #5 on: September 22, 2014, 01:11:18 PM »
Drop that "Conexión de red inalámbrica" in http://translate.google.com and it says "Wireless Network" (Autodetect:Spanish to English)

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #6 on: September 22, 2014, 01:21:24 PM »
Thanks Ath. I have tried now this with good results (and will try with "Wireless Network"
But fails Local Area Connection, so I am not very illusionated.


to stop the connection

@echo off
ipconfig /release

until reiniate or

@echo off
ipconfig /renew

 :-[

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: Enable/Disable my net adapters in the laptop
« Reply #7 on: September 22, 2014, 01:24:22 PM »
For me this is solved, but I would like to know if goes well in English or fails like in spanish ?

 :tellme: