Disable wireless connection when LAN is connected

This is a very simple script to enable or disable wirless connection depending on the LAN connection status. I use the enable and disable verbs of "Network connection" object. Actually I want to use enable and disable methods of WMI Class Win32_NetworkAdapterConfiguration,but

12,009 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook