Posted on 01-11-2022 02:10 AM
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.
Posted on 01-11-2022 08:24 AM
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
Posted on 05-13-2022 10:34 AM
Hello @ljcacioppo ! Where is this key stored exactly?
Posted on 05-16-2022 12:47 AM
Its stored in ~/Library/Preferences/ByHost/com.apple.controlcenter/{UDID}.plist