Disable Wifi and external drive access

pinewoodcs
New Contributor

Hi all,

I'm new to JAMF so forgive my basic knowledge!

I'm looking to be able to remotely turn on/off Wifi and external drive access to our Macs, in a way that users cannot turn them back on.

I seem to have this working by using 2 different Policies. One that pushes a script to make Wifi inactive and a different one to make Wifi active. These are based on:

networksetup -setairportpower Wi-Fi On/Off
networksetup -setnetworkserviceenabled Wi-Fi On/Off

I then use a Configuration Profile to switch enable/disable the Network System Pref and External drive access:

Restrictions: Preferences: Network
Media: External Disks: Allow

I seem to have 2 main problems:
1) It's a bit clunky having to enable one Wifi Policy, disable another and change the settings in the Configuration Profile. Is there a way to combine the Policies with the Configuration Profile so that I can use 1 method to enable everything or disable everything for computers within the Scope? I tried to make the Configuration Profile into a package but it didn't seem to work. Is there a better way to do all this?
2) The Menu bar doesn't seem to update correctly, so it looks like WIFI is operating even when it's inactive. It's not a big problem but is a little frustrating.

Thanks in advance.

0 REPLIES 0