2 weeks ago
There's plenty of posts regarding disabling AirPlay Receiver, but we actually want to ENABLE it. Our previous AirPlay solution, AirServer, is not being properly maintained by the dev, doesn't play nice on our network, and we have just about given up on it.
I tried reversing @ljcacioppo 's solution for disabling the setting here, but when set to true, it doesn't toggle the setting on; it only allows the user to enable it. This is on Seqouia 15.5. Ideally, we would like the following things set via profile:
Does anyone have a working solution for this?
Solved! Go to Solution.
2 weeks ago
this script should do it.
#!/bin/bash
loggedInUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
#hostId=$(system_profiler SPHardwareDataType | grep "Hardware UUID" | cut -d ":" -f2 | xargs)
sudo -u "$loggedInUser" defaults write "/Users/$loggedInUser/Library/Preferences/ByHost/com.apple.controlcenter.plist" AirplayReceiverAdvertising -int 3
2 weeks ago
this script should do it.
#!/bin/bash
loggedInUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
#hostId=$(system_profiler SPHardwareDataType | grep "Hardware UUID" | cut -d ":" -f2 | xargs)
sudo -u "$loggedInUser" defaults write "/Users/$loggedInUser/Library/Preferences/ByHost/com.apple.controlcenter.plist" AirplayReceiverAdvertising -int 3
Friday
Yes! Thank you, this is exactly what we were looking for. FYI, for anyone using this, these are the corresponding settings for the AirplayReceiverAdvertising key, which affects the "Allow AirPlay for" setting: