Skip to main content
Question

Running script on Mojave

  • April 16, 2020
  • 4 replies
  • 0 views

sebastian_santo
Forum|alt.badge.img+4

Hello, I need someone help I'm trying to run a script via jamf policy in a few computer and want to do it all at once but I get this error bellow

execution error: Not authorized to send Apple events to System Events. (-1743)

Really need some help

4 replies

Forum|alt.badge.img+12
  • Valued Contributor
  • 359 replies
  • April 16, 2020

I have seen the "-1743" when running a shell script that wants to start on osascript to display information to the user. It only happens for a few nodes. I had no opportunity to debug this. I tried to run 'tccutil reset AppleEvents com.apple.Terminal' to clear this, but it did not solve the issue. I need more info from the client for further debugging.


sebastian_santo
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 21 replies
  • April 16, 2020

@mschroder thank you for the info, I found the issue I just created a profile using the PPPC utility and allow the TERMINAL, JAMF.app, jamfHelper, and osascript once the profile was installed everything went well


bmortens115
Forum|alt.badge.img+14
  • Contributor
  • 33 replies
  • April 16, 2020

jamf has built a PPPC mobileconfig for this: here
Download the .mobileconfig and upload it to your jamf pro server. Scope it to all computers that are 10.14.0 and above with UAMDM.


Forum|alt.badge.img+12
  • Valued Contributor
  • 359 replies
  • April 16, 2020

Yes, there is a mobileconfig for this, this is why this works in most cases. And then there are the cases where it fails...