This script disables (or enables) unneeded macOS services. It was derived from the work of pwnsdx. The agents and daemons used in the original script are used as-is.
This script needs to have macOS’s System Integrity Protection (SIP) disabled, in order for all the settings to take effect. Additionally, it requires that the user who is going to run this script must be an administrator.
We need to disable SIP, first. To do that, boot into recovery mode, then press and hold ⌘ + r while the
system is booting. When the recovery system loads, click Utilities > Terminal. Then, run:
csrutil disable
rebootAfter the system boots, login to your account.
You may clone the entire repository with:
git clone https://github.com/ebzzry/macsvcsOr, you may get just the script:
curl -sSLO https://raw.githubusercontent.com/ebzzry/macsvcs/master/macsvcsThen, don’t forget to make it executable:
chmod +x macsvcsTo disable the unneeded agents and daemon on your macOS system:
./macsvcs unloadTo enable them back:
./macsvcs loadTo list the agents and daemons to be configured:
./macsvcs list-agents
./macsvcs list-daemonsTo display warnings for either the unload or load commands:
./macsvcs -w unload
./macsvcs -w loadShould you wish to re-enable SIP, boot into recovery mode just like above. Open the Terminal application then, run:
csrutil enable
reboot