Posted on 08-31-2017 10:12 PM
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
Posted on 09-01-2017 06:39 AM
Does this info still work?
https://www.jamf.com/jamf-nation/discussions/5528/enable-admin-authorization-to-change-wireless-networks
Posted on 09-05-2017 07:41 PM
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
Posted on 09-07-2017 06:33 AM
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.