MacOS Connectivity Restore
Purpose
This skill restores the two settings we previously repaired on this Mac:
- Universal Control /
Link to Mac or iPad - AirDrop availability plus AirDrop receiving mode
It is designed for managed Macs where these settings are forced by files under /Library/Managed Preferences.
What This Skill Changes
Root-level managed preferences:
com.apple.universalcontrol.plistDisable = false
com.apple.applicationaccess.plistallowUniversalControl = trueallowAirDrop = true
com.apple.NetworkBrowser.plistDisableAirDrop = false
User-level preferences:
com.apple.sharingdDiscoverableMode = "Contacts Only"
com.apple.NetworkBrowserDisableAirDrop = false
Scripts
scripts/restore-root.sh- Run as root. Fixes the managed preference files under
/Library/Managed Preferences.
- Run as root. Fixes the managed preference files under
scripts/restore-user.sh- Run as the logged-in user. Sets AirDrop receiving mode to
Contacts Only.
- Run as the logged-in user. Sets AirDrop receiving mode to
scripts/install-startup.sh- Installs a LaunchDaemon and LaunchAgent so these settings are restored automatically after reboot/login.
Default Workflow
When the user asks to reapply these settings:
- Run
scripts/restore-root.sh <username>with admin privileges. - Run
scripts/restore-user.sh. - Read back the values to verify:
allowUniversalControl = 1allowAirDrop = 1DisableAirDrop = 0DiscoverableMode = "Contacts Only"
Persist Across Reboots
When the user asks to make the change stick after every reboot:
- Ensure this skill has been installed to a stable path under
~/.claude/skills/macos-connectivity-restore. - Run
scripts/install-startup.sh. - Confirm these startup items exist:
/Library/LaunchDaemons/com.joseph.macos-connectivity-restore.root.plist~/Library/LaunchAgents/com.joseph.macos-connectivity-restore.user.plist
Verification Commands
defaults read '/Library/Managed Preferences/com.apple.applicationaccess.plist' 2>/dev/null | rg 'allowAirDrop|allowUniversalControl'
defaults read '/Library/Managed Preferences/com.apple.NetworkBrowser.plist' 2>/dev/null
defaults read com.apple.sharingd 2>/dev/null | rg 'DiscoverableMode'