I need a script which will determine the network connection (adapter) name used for internet connection and assign a variable with this value, so the variable will be like %var% and it's value will be like "Local Area Connection 5". The script should work on following windows versions: xp sp3, 2003, Vista, 2008, 7. It should run 'cmd /c "echo %var%"' finally to display the connection name used for internet connectivity.
The script should work on clean windows installation, no 3rd party software should be used. It should correctly determine any type of connections used for internet connectivity, including but not limited to VPN, PPPoE, LAN, dialup, WiFi, 3G.
Bidder should request no more than $30 for that.