Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: "Thiers Botelho" Date: Wed, 6 Oct 2004 12:44:57 -0300 Content-Type: text/plain; charset="us-ascii" 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/