delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/06/11:45:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: (De)activating network connection [SOLVED]
MIME-Version: 1.0
Message-ID: <OFE12C4860.612ACB88-ON03256F25.0054419C-03256F25.005672FC@fosfertil-ultrafertil.com.br>
From: "Thiers Botelho" <thiers AT fosfertil DOT com DOT br>
Date: Wed, 6 Oct 2004 12:44:57 -0300

However off-topic, let me make this last posting in order to report my 
[very positive and interesting] findings on this matter.


1. Microsoft KB article 262265 explains that NETSH.EXE returns an error 
when trying do disable an Ethernet connection:

        "Dedicated interfaces cannot be connected, disconnected, enabled, 
or disabled".


2. Microsoft KB article 311272 introduces DEVCON.EXE .

        "The DevCon utility is a command line utility that acts as an 
alternative to Device Manager. Using DevCon, you can enable, disable, 
restart, update, remove, and query individual devices or groups of 
devices."


3. I've successfully tested DEVCON.EXE (Win XP SP1) to disable the 
Ethernet connection. As a matter of fact, the entire hardware device 
disappeared from Device Manager. I suppose the procedure can be refined 
(with further testing) to disable just the WAN miniport instead of the 
whole device. As follows:

        devcon hwids =net       # query hardware id of all network 
interfaces (print the log and pinpoint which id belongs to the network 
interface)

        devcon disable 
PCI\VEN_8086&DEV_1050&SUBSYS_02851014&REV_02\4&3A322F38&0&40F0  # puff ! 
there it goes (fireworks abound if you're connected anywhere)

        devcon enable 
PCI\VEN_8086&DEV_1050&SUBSYS_02851014&REV_02\4&3A322F38&0&40F0  # presto ! 
here's it back again (no reboot required)


4. BTW, got this thru 

 
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=microsoft.public.windowsxp.network_web


Cheers


Thiers Botelho


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019