Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Wireless Networking > Switching between wired and wireless

Reply
Thread Tools

Switching between wired and wireless

 
 
Jack [MVP-Networking]
Guest
Posts: n/a
 
      04-06-2009
Hi
Very Simple solution, http://www.ezlan.net/metrics.html
Jack (MS, MVP-Networking)

"simmondp" <> wrote in message
news:E32E3786-5B76-463A-B255-...
> Cup and pate this into a file called SetLOM.VBS and run, you can make it
> silent by commenting the appropraite lines - works on XP never tried it on
> Vista
>
> ================ cut here ===================
> ' SetLOM.VBS
> '
> ' Enumerate all Wireless Adaptors and set LOM = 1
> ' to ensure wired connection disables wireless
> '
> ' Version 2.0 Proof of concept - Paul Simmonds 12 Sept 2006
> '************************************************* *********
> ' 2.0 - Correctly detect a Wireless from it's media type
>
> ' Set computer to work on, . is local
> strComputer = "."
> ' CONST use for StdRegProv class
> const HKEY_LOCAL_MACHINE = &H80000002
>
> ' Create a Shell object to run the netsh command in
> Set objShell = CreateObject("Wscript.Shell")
>
> ' Get a copy of a reg info for Network Connections
> Set objReg=GetObject("winmgmts:{impersonationLevel=imp ersonate}!\\"&
> strComputer & "\root\default:StdRegProv")
> strKeyPath1 =
> "SYSTEM\CurrentControlSet\Control\Class\{4D36E 972-E325-11CE-BFC1-08002BE10318}"
> strKeyPath2 =
> "SYSTEM\CurrentControlSet\Control\Network\{4D36E97 2-E325-11CE-BFC1-08002BE10318}"
>
> ' Enumerate the Keys, getting a reference to all subkeys
> objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath1, arrSubKeys
>
> ' Loop through the array of subkeys
> For Each subkey In arrSubKeys
>
> objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath1 & "\" & subKey,
> "Characteristics", intCharacterics
> objReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath1 & "\" & subKey,
> "NetCfgInstanceID", strNetCfgInstanceID
> objReg.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath2 & "\" &
> strNetCfgInstanceID & "\Connection", "MediaSubType", intMediaSubType
>
> ' *** 132 means its a physical adaptor and 2 means it Wireless ***
> If (intCharacterics = 132 AND intMediaSubType = 2) then
>
> Return = objReg.SetStringValue (HKEY_LOCAL_MACHINE, strKeyPath1 & "\"
> & subKey, "LOM", "1")
> if Return = 0 then
> Wscript.Echo "LOM sucessfully set to 1 for wirless card " &
> strDriverDesc
> else
> Wscript.Echo "Error: LOM failed to be set to 1 for wireless card "
> &
> strDriverDesc
> End if
>
> End If
>
> Next
>
> ================ cut here =================
>
>
> "blooney" wrote:
>
>> Is anyone aware of automated methods in XP to switch off the wireless
>> interface when connected to wired Ethernet? Most options I've seen
>> involve
>> convoluted scripting. Users don't seem to be able to handle manual
>> process,
>> and we don't find any XP Group Policy that will help.
>>
>> Tom


 
Reply With Quote
 
 
 
 
jetheller jetheller is offline
Junior Member
Join Date: Mar 2011
Posts: 7
 
      03-06-2011
If you don't want to figure it out your self with scripting and the headache of maintaining it or changes when a new hardware or OS comes it you could use Wireless AutoSwitch. It is a cool, inexpensive little utility that does exactly what you are asking.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicate name on network when switching wireless to wired network John Wireless Networking 8 05-06-2009 04:19 PM
Wireless can't see Wired, Wired Can't Access Wireless UFGrayMatter Wireless Networking 0 08-14-2006 01:26 AM
Switching from Wired connection to wireless =?Utf-8?B?QWxiZXQ=?= Wireless Networking 3 02-10-2006 05:22 PM
wireless can't access wired. But Wired can access wireless =?Utf-8?B?ZGZhdG92aWM=?= Wireless Networking 5 02-05-2005 08:07 AM
Wired Tools of 2004 from Wired magazine : the Cameras !!! Mike Henley Digital Photography 0 12-06-2004 02:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57