It's not working for me. Here's what I got when I try to run
it:./caffeinate.js: line 1: //: is a directory./caffeinate.js: line 2:
//: is a directory./caffeinate.js: line 3: //: is a
directory./caffeinate.js: line 4: //: is a directory./caffeinate.j...
the commands are literally just:sudo jamf reconsudo jamf policysudo jamf
manageThats all you need. If you want to make a "script" out of it, just
add #!/bin/bash at the top.#!/bin/bashsudo jamf reconsudo jamf
policysudo jamf manage
much simpler way to fix this, as stated below.sudo jamf enroll
-promptwherein the JSS username and password is an account with
enrolment privileges. And the SSH username and password is a local
admin.
i agree, that is way too long an unnecessarily complex. someone posted
this below which i have used with success in the past. short and
sweet.sudo jamf enroll -promptwherein the JSS username and password is
an account with enrollment privileges. And ...