Jump to content

System Preferences, Networks, WiFi, Require authorisation


Recommended Posts

Posted (edited)

Does anyone know how to set this setting programmatically , using a script or a profile or whatever?

 

attachment.php?attachmentid=26390&d=1410771139

 

I've found the plist which contains the setting, it is /Library/Preferences/SystemConfiguration/preferences.plist. However, the setting itself is buried quite deeply in the file and my attempts to toggle it with defaults write and plistbuddy have ended in horrible failure. I've also tried creating a custom profile using Profile Manager but that hasn't worked either.

 

Reason I want to set this is because our little darlings keep on turning the wifi on on macs where it isn't needed and then they're wondering why they stop working or work slowly and of course they're turning it off on laptops and again, wondering why they've stopped working. Turning this little flag on would be very helpful.

 

Any help would be appreciated!

system preferences.jpg

Edited by Norphy
Posted

Well, this one turned out to be quite easy.

 

/usr/libexec/airportd prefs RequireAdminPowerToggle=YES

 

If you're using DCM in ConfigMgr, you can use the following discovery script

 

Wireless=$(/usr/libexec/airportd prefs | grep RequireAdminPowerToggle)
echo $Wireless

 

and the first as a remediation script. You need to look for the following value in your compliance rule:

RequireAdminPowerToggle=YES

 

Similarly, if you want to turn AirPort off, you can use

 

WirelessState=$(networksetup -getairportpower en1)
echo $WirelessState

as the detection script,

networksetup -setairportpower en1 off

as the remeditation script and

Wi-Fi Power (en1): Off

as the compliance rule.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...