disable wireless adapter and enable wired w/script?

  • Thread starter Thread starter Peter K
  • Start date Start date
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
 
The simplest is to use netsh:
netsh interface set interface YourWiredLan DISABLE
netsh interface set interface YourWireless ENABLE

-- PA
 
Back
Top