I want to prevent the user from being able to stream to remote speakers with any client on their laptop. Is there a way to globally disable AirPlay on a Mac OS X (10.6 or 10.7) system?

  • By disabling you mean you want to prevent any user from selecting a remote speaker in iTunes? – nohillside Jun 13 '12 at 15:41
  • I want to prevent the user from being able to stream to remote speakers with any client on their laptop. – Freyday Jun 13 '12 at 16:01
  • 4
    Please don't post the same question on different SE sites. – vcsjones Jun 13 '12 at 16:09
  • AirPlay is part of Bonjour, which you probably don't want to disable. – vcsjones Jun 13 '12 at 16:11
  • The current solution doesn't work on modern versions of MacOS, presumably because of System Integrity Protection. Are there any other options? chmod: Unable to change file mode on /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent: Operation not permitted – Jeremy Nov 15 '18 at 19:41

Unfortunately, Apple hasn't provided an easy way to disable this functionality. However you can deny global access to the application that provides AirPlay mirroring by changing its unix permissions

In order to disable AirPlay mirroring, we have to deny the computer access to the application that allows the computer to AirPlay mirror: Fire up a terminal and enter the following command:

sudo chmod 000 /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent

Enter the administrative password and restart the Mac afterwards. If you try to AirPlay mirror to an AppleTV now, the AirPlay icon will stay blue, as if it's still trying to connect but it never will.

The only disadvantage is that it locks up the menubar. The user won't be able to use any of the menu bar items after they tried mirroring the screen. You're still able to adjust the volume using the keyboard, though. Logging out and back in will restore the functionality of the menubar until you try to use AirPlay mirroring again.

To eliminate the temptation of using AirPlay you can hide the AirPlay icon by opening System Preferences > Displays and unchecking the "Show mirroring options in the menu bar when available" checkbox. You will need to repeat this step for every user on the system.


It appears you can use managed preferences (MCX) to disableAppleTV:

WGM - com.apple.iTunes

..but that will only affect iTunes, and I don't have an AppleTV on hand to test.


Turning off airplay is done using Airport Utility app. Select the device click the edit button and you will then see a dialog box with various options. The menu option on the right is labeled 'Airplay' and that contains a toggle to turn Airplay on or off.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .