Skip to main content
Question

Extension Attribute to get AirPlay Receiver status and script/command to disable it

  • January 11, 2022
  • 3 replies
  • 22 views

karthikeyan_mac
Forum|alt.badge.img+18

I am looking for way to get the status of AirPlay Receiver and also command/script to disable it. I do not want to disable  through config profiles. Thanks.

3 replies

ljcacioppo
Forum|alt.badge.img+17
  • Jamf Heroes
  • January 11, 2022

Personally, I use a config profile, but I believe this setting is in a ByHost Preference so you should be able to check like this:

defaults -currentHost read com.apple.controlcenter AirplayRecieverEnabled


And disable like this:

defaults -currentHost write com.apple.controlcenter AirplayRecieverEnabled -bool false



Note: Yes, the word "Receiver" is purposefully misspelled in the script because the key is misspelled


Forum|alt.badge.img
  • New Contributor
  • May 13, 2022

Hello @ljcacioppo ! Where is this key stored exactly?


karthikeyan_mac
Forum|alt.badge.img+18
  • Author
  • Honored Contributor
  • May 16, 2022

Hello @ljcacioppo ! Where is this key stored exactly?


Its stored in ~/Library/Preferences/ByHost/com.apple.controlcenter/{UDID}.plist