Disabling Airplay receiver

tegus232
Contributor

Hi all,

 

How can I disable System Prefs -> sharing -> airplay receiver via a script? I don't really know the libraries to the point which would allow me to go and locate them.

 

It auto turns on when the machine comes online

1 ACCEPTED SOLUTION

ljcacioppo
Contributor III

You can disable airplay receiver with a configuration profile.
I use a json schema to set this via Configuration Profile -> Applications and Custom Settings -> External Applications

Then I use com.apple.controlcenter as the domain and paste in the following schema: https://github.com/Jamf-Custom-Profile-Schemas/ljcacioppo-schemas/blob/main/com.apple.controlcenter....

Once that schema is there, it should reveal a dropdown true false option

Screen Shot 2021-12-21 at 9.07.06 AM.png

View solution in original post

6 REPLIES 6

ljcacioppo
Contributor III

You can disable airplay receiver with a configuration profile.
I use a json schema to set this via Configuration Profile -> Applications and Custom Settings -> External Applications

Then I use com.apple.controlcenter as the domain and paste in the following schema: https://github.com/Jamf-Custom-Profile-Schemas/ljcacioppo-schemas/blob/main/com.apple.controlcenter....

Once that schema is there, it should reveal a dropdown true false option

Screen Shot 2021-12-21 at 9.07.06 AM.png

I got this to work, but it only shuts off AirPlay receiver, and the end user can just turn it back on. Did I do something wrong? I am looking to restrict it so nobody can turn it on. 

This is a great contribution but it doesn't solve the problem of how to disable the airplay receiver. It turns off the receiver, but students can turn it right back on.

You can actually now use the "allowAirPlayIncomingRequests" key in the com.apple.applicationaccess domain to control this.

I'll update my schema for restrictions later today and reply

Morningside
Contributor II

Have there been any new discoveries on this? I want to disable (not just turn off) the airplay receiver for student macbooks. 

I updated my com.apple.applicationaccess json schema to have the new key to disable airplay receiver: https://github.com/Jamf-Custom-Profile-Schemas/ljcacioppo-schemas/blob/main/com.apple.applicationacc...