Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
tempfix_managedpref_parentalcontrolsd_cpu.sh
#!/bin/bash
# this is not following best practices
# removing explicit familyControlsEnabled keys to mitigate high parentalcontrolsd cpu usage
rm -rf /Library/Managed\ Preferences/com.apple.applicationaccess.new.plist
rm -rf /Library/Managed\ Preferences/*/com.apple.applicationaccess.new.plist
if pgrep 'parentalcontrolsd'; then
killall -STOP parentalcontrolsd
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment