Skip to main content
Question

Delete or block "Create Network" or Computer-to-computer


Forum|alt.badge.img+7
  • Contributor
  • 38 replies

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.

8 replies

Forum|alt.badge.img+11
  • Contributor
  • 286 replies
  • May 26, 2015

Restrict System Preferences? Remove Menu bar icon? I would imagine the combination would do it.


Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • May 26, 2015

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.


Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • May 26, 2015

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.


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 38 replies
  • May 28, 2015

Thank you guys. We did figured how to block it.


Forum|alt.badge.img+14

Just what I needed! Thanks mm2270 :)


Forum|alt.badge.img+14

<@;)


Forum|alt.badge.img+7
  • Contributor
  • 43 replies
  • February 27, 2017

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!


Forum|alt.badge.img+7
  • Contributor
  • 43 replies
  • February 28, 2017

Never mind! Figured it out thanks to some really awesome posts. Ran the script and it actually works. Woot! :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings