We upgraded to JSS 8.4 (from 7.31) and noticed on new QuickAdds the postflight script has fewer commands, including an "enroll" command:
#!/bin/sh
####################################################
## Create the configuration file at:
## /Library/Preferences/com.jamfsoftware.jamf.plist
####################################################
/usr/sbin/jamf createConf -url 'https://XXXXXXXXXX:8443/' -k
####################################################
## Turn on SSH
####################################################
/usr/sbin/jamf startSSH
####################################################
## Run enroll
####################################################
/usr/sbin/jamf enroll -invitation XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
exit $?
Our old QuickAdds have a number of understandable and editable entries:
#!/bin/sh
####################################################
## Create the configuration file at /private/etc/jamf.conf
####################################################
/usr/sbin/jamf createConf -url 'https://XXXXXXXXXX:8443/' -k
####################################################
## Turn on SSH
####################################################
/usr/sbin/jamf startSSH
####################################################
## Create a new account
####################################################
/usr/sbin/jamf createAccount -username 'jdoe' -realname 'jdoe' -passhash 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -admin -hiddenUser
####################################################
## Run Recon
####################################################
/usr/sbin/jamf recon -username 'recon' -passhash 'XXXXXXXXXXXXXXXX' -sshUsername 'jdoe' -sshPasshash 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
exitCode=$?
####################################################
## Enforce the Management Framework
####################################################
/usr/sbin/jamf manage
exit $exitCode
Is the "enroll" command mandatory? Or can we edit the QuickAdd postflight script to use the old commands?
Our concern is we have several hands-off QuickAdd installers designed for special groups of users, which have customized postflight script entries.
Don
