New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Automatic wi-fi disabling


Post Reply New Thread Subscribe

 
Thread Tools
aggletonm

 
Member Since: Jun 27, 2013
Posts: 3
aggletonm is on a distinguished road

aggletonm is offline
Hi

I'm trying to see if on OSX it's possible to automatically disable wi-fi when an Ethernet cable is attached to the device. We don't want users connecting to open Wi-Fi networks when connected to the corporate LAN. I know how to do it in Windows (latest NIC drivers support it) but can't find anything about it in OSX.

Any help gratefully received
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,699
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
While you can't disable the WiFi on the existence of the Ethernet cable, you can set the service order to give the Ethernet connection a higher priority.

Open up System Perferences->Network and you will see a list of network devices on the left. Click on the gear icon there a a drop-down will appear. From the drop-down, chose "Set Service Order", and in the window that will appear, drag Ethernet to be the first one and then WiFi.

Additionally, for the Wifi, click on Advanced and the first tab is your preferred networks. Set the order like you want and then if you want to further lock this down, you can check on the option "Change network" under the title "Require administrator authorization to:"

When you're all done, hit the padlock icon to lock the settings and off you go..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
IWT

 
IWT's Avatar
 
Member Since: Jan 23, 2009
Location: Born in Scotland, Worked in Scotland then England, Now live in Wales
Posts: 556
IWT is a jewel in the roughIWT is a jewel in the rough
Mac Specs: 2010 27" iMac 16GB RAM, SSD & 1TB IHD (Lion) + 2013 27" iMac Fusion SSD & 3TB IHD, 32GB (Mavericks)

IWT is offline
Ashwin has forgotten more than I will ever know, so I offer this with some trepidation.

With Ethernet connected, you can click on the WiFi icon on the top Menu Bar and, from the drop down, choose "Turn WiFi on" or "Turn WiFi off".

Via System Preferences>Network, in addition to setting the order (in your case Ethernet as first choice), you can again Turn off the WiFi.

Ian
QUOTE Thanks
aggletonm

 
Member Since: Jun 27, 2013
Posts: 3
aggletonm is on a distinguished road

aggletonm is offline
Thanks for that - I really needed to stop the users being able to turn it on when connected to the corporate network (we have regulatory requirements - PCI). Looks as though Ashwin's is the way I'm going to have to go.
QUOTE Thanks
aggletonm

 
Member Since: Jun 27, 2013
Posts: 3
aggletonm is on a distinguished road

aggletonm is offline
Ashwin

Thanks for that - not ideal but it'll have to do. AS, in Windows, it the driver for the Ethernet card that does the work, I hope they may port that functionality over to OSX,
QUOTE Thanks
mrplow

 
mrplow's Avatar
 
Member Since: Oct 01, 2007
Location: UK
Posts: 6,749
mrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond repute
Mac Specs: 27" iMac i7 (2011) 10.10, iPhone6, iPad Air, AppleTV2

mrplow is offline
It's an older article but this is worth a look:

Auto-disable AirPort when ethernet is active - Mac OS X Hints

External hard disk acquisition addict - but admitting the problem is the first step to a robust backup

Please use the reputation system if you think you've been helped - top right of this post
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,712
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is offline
Nice find. I had completely forgotten that tip.

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,699
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Nice find MrPlow, if the OP is using an account with limited control and unable to turn on WiFi when connected to Ethernet, wouldn't this script fail as well?

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
mrplow

 
mrplow's Avatar
 
Member Since: Oct 01, 2007
Location: UK
Posts: 6,749
mrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond reputemrplow has a reputation beyond repute
Mac Specs: 27" iMac i7 (2011) 10.10, iPhone6, iPad Air, AppleTV2

mrplow is offline
Quote:
Originally Posted by Raz0rEdge View Post
Nice find mrplow, if the OP is using an account with limited control and unable to turn on WiFi when connected to Ethernet, wouldn't this script fail as well?
You may well be right but the OP hasn't mentioned anything about account restrictions. If anything it seems like the lack of restrictions that's the issue in the first instance

External hard disk acquisition addict - but admitting the problem is the first step to a robust backup

Please use the reputation system if you think you've been helped - top right of this post
QUOTE Thanks

Post Reply New Thread Subscribe


« Os x 10.8.4 | Terminal: stuck in a ">" line »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Disabling Automatic Download of Citrix ICA? TheTrueMoron OS X - Operating System 1 12-22-2011 08:58 PM
Clean Desktop - disabling automatic mount of drives yan03 OS X - Operating System 1 05-30-2010 02:39 AM
Disabling automatic disc verification after burning. DigitalJesus OS X - Operating System 0 01-16-2007 02:25 PM

All times are GMT -4. The time now is 07:46 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?