Last active
January 27, 2018 16:56
-
-
Save opragel/acf1e4661fac6d66745e9f781a89514e to your computer and use it in GitHub Desktop.
tempfix_managedpref_parentalcontrolsd_cpu.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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