Skip to main content
Question

Prevent the Disable of WiFi


Forum|alt.badge.img+4

Hi,

anyone know how to prevent student from disabling WiFi ?
Wouldn't mind using a script to enable it upon the disable of WiFi, we just have quite a few students turning off WiFi to get around Lanschool.

Mainly targeting MacOS Sierra

Cheers

3 replies

Forum|alt.badge.img+8
  • New Contributor
  • 32 replies
  • September 1, 2017

Does this info still work?

https://www.jamf.com/jamf-nation/discussions/5528/enable-admin-authorization-to-change-wireless-networks


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 15 replies
  • September 6, 2017

Thanks, that works perfect.

For anyone interested here is what i did.

#Removing Admin Access here
localAccts=$(dscl . list /Users UniqueID | awk '$2>500{print $1}' | grep -v administrator)

while read account; do
    echo "Making sure $account is not in the local admin group"
    dseditgroup -o edit -d $account admin
done < <(echo "$localAccts")
#end of admin access removal

#enforcing Network Change Admin Prompt
sudo /usr/libexec/airportd prefs RequireAdminIBSS=YES RequireAdminNetworkChange=YES RequireAdminPowerToggle=YES

Forum|alt.badge.img+21
  • Valued Contributor
  • 322 replies
  • September 7, 2017

Does this prevent your users from selecting their home WiFi? The solution below uses launchd to make sure the device is connected to the school WLAN when in range. I would think that it could be tweaked to make sure that WiFi was enabled as well.

Managing WiFi on macOS


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