Disabling calendaragent via policy

mhatt
New Contributor III

Hello,

I'm trying to disable the calendar agent via Jamf policy. The reason being is it's interfering with out albeit poorly written secure browser for state testing.

This is the command that works when locally run:

launchctl unload -w /System/Library/LaunchAgents/com.apple.CalendarAgent.plist

However when putting this in a policy we get back:

/System/Library/LaunchAgents/com.apple.CalendarAgent.plist: Could not find specified service<br/>

My first assumption is that it's because the policy is running it as root and not the current user. I haven't been able to successfully create a script using $3 like a lot of the discussions suggest. I've also seen a lot of advice on using a launchagent or daemon but that's really not the way we want to go.

Any advice would be greatly appreciated!

0 REPLIES 0