Skip to content

Instantly share code, notes, and snippets.

View albertico-gov's full-sized avatar

Alberto albertico-gov

View GitHub Profile
@albertico-gov
albertico-gov / mac_remove_enroll_agent
Last active March 24, 2018 23:10
Fish script to disable the MacOS enrollment reminders.
#!/usr/bin/env fish
set -g SYSTEM_LAUNCH_AGENTS_DIR "/System/Library/LaunchAgents"
set -g SYSTEM_LAUNCH_AGENTS_DISABLED_DIR "/System/Library/LaunchAgentsDisabled"
set -g SYSTEM_LAUNCH_DAEMONS_DIR "/System/Library/LaunchDaemons"
set -g SYSTEM_LAUNCH_DAEMONS_DISABLED_DIR "/System/Library/LaunchDaemonsDisabled"
set -g APPLE_MANAGED_AGENT "com.apple.ManagedClientAgent.enrollagent.plist"
set -g APPLE_MANAGED_CLIENT "com.apple.ManagedClient.enroll.plist"
######################