View Single Post
  #2 (permalink)  
Old 09-26-2005, 09:34 PM
dold@XReXXautom.usenet.us.com
Guest
 
Posts: n/a
Default Re: automatic disabling of wireless connection while connected to wired net: howto?

In alt.internet.wireless Chu <chunews@gmail.com> wrote:
> I would like to (programmatically, or through a group policy) disable
> the wireless interface on individual workstations iff the wired
> interface is already active.


login scripts? scheduled jobs?
The technique, once you get it to run, is simple enough.

If there is a valid IP address on the wired interface, run a command to
disable the wireless adapter.

I run mine manually, when I remember.

<http://support.microsoft.com/default.aspx?scid=kb;en-us;311272> provides
an executable called DevCon for Device Control.

devcon status * > all_devices.txt
will give a text file with all of the devices and the current status.
Find the name of your WiFi card there... Mine is an SMC2435W.

PCI\VEN_104C&DEV_8400&SUBSYS_8402104C&REV_00\5&250 9CBFA&0&0051F0
Name: SMC2435W 22 Mbps Wireless Cardbus Adapter

devcon status "PCI\VEN_104C&DEV_8400*"
ensure that this shows only the status from the one device that you want to
affect. (It's interesting what shows up under the same "VEN_" number.)

I made a batch file with one line:
devcon %1 "PCI\VEN_104C&DEV_8400*"

then I put two shortcuts to the bat file on my desktop, adjusting the
properties so that one has a "target" of the bat file enable, and another
shortcut for disable.
"C:\downloads\DevCon\2435.bat" enable
I even picked clever icons for the two shortcuts ;-)

--
---
Clarence A Dold - Hidden Valley (Lake County) CA USA 38.8,-122.5


Reply With Quote