Skip to main content
Question

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


karthikeyan_mac
Forum|alt.badge.img+17

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.

ljcacioppo
Forum|alt.badge.img+17
  • Contributor
  • 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+17
wintermute wrote:

Hello @ljcacioppo ! Where is this key stored exactly?


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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings