disable wireless adapter and enable wired w/script?

P

Peter K

On my laptop I need to switch frequently between wired lan
port at my desk and wireless connection in meetings,etc.

I must right click enable connection on the wireless
connection icon in Network and Dialup Connections and
right click disable on the other connection by the clock.

I can write some scripts but I can find no way to access
the Network and Dial-up connections to do this
enable/disable.

Anyone have any ideas how to automate this with a script?
Thanks,
Peter
 
P

Pavel A.

The simplest is to use netsh:
netsh interface set interface YourWiredLan DISABLE
netsh interface set interface YourWireless ENABLE

-- PA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top