Posted on 05-26-2015 09:28 AM
Anyone knows how block or delete "Create Network" or Computer-to-computer option?
Teachers use LanSchool to manage each student but they found out how to turn of the wifi by just creating network.
Posted on 05-26-2015 10:00 AM
Restrict System Preferences? Remove Menu bar icon? I would imagine the combination would do it.
Posted on 05-26-2015 10:03 AM
I know what setting enables the checkbox under Advanced for the "Create computer-to-computer networks" to require admin rights. and which plist file its stored in, but I'm not sure how to convert it into a Config Profile. I get the feeling there is some command line binary that can enable that checkbox without needing to mess with a config profile, but I'm not sure on that either.
This is assuming the students are not local admins. If they are, there's not much you'd be able to do to stop them from doing this other than disciplinary action.
Posted on 05-26-2015 11:43 AM
OK, finally figured it out. I knew I had seen the setting being discussed somewhere. I found the info on this link:
http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/ but its also possible someone on here put up this info on a thread as well.
So here's how you would do this with a simple script. I tested it on both 10.9 and 10.10 and it works nicely.
#!/bin/sh
## Get the Wi-Fi port identifier
WIFI=$(networksetup -listallhardwareports | awk '/Hardware Port: Wi-Fi/{getline; print $NF}')
## Set the Require Admin to create computer to computer networks setting to enabled
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport $WIFI prefs RequireAdminIBSS=YES
Assuming the students don't have admin rights on their accounts, this will stop them from creating those networks. When they try, the OS will prompt them for admin credentials to continue.
Posted on 05-28-2015 06:30 AM
Thank you guys. We did figured how to block it.
Posted on 12-14-2016 08:32 AM
Just what I needed! Thanks mm2270 :)
Posted on 12-14-2016 08:34 AM
<@;)
Posted on 02-27-2017 03:23 PM
So as someone who has no scripting background and who really likes everything WYSIWYG, can someone please walk me through how to apply that awesome script above so I can turn off the "Create computer-to-computer networks" option in our students' Macbook Airs? :) All help greatly appreciated!
Posted on 02-28-2017 06:23 AM
Never mind! Figured it out thanks to some really awesome posts. Ran the script and it actually works. Woot! :)