I have a bit of dilemma where I need to remove Jamf Framework and enroll many devices at once.
I was thinking we can do something with a script:
#!/bin/bash
sudo jamf removeFramework
sudo jamf enroll -prompt -nopolicy
#After this is run, it would request for JSS and password.
This is where I am stuck. I understand this is a bad Security practice. But I still want to do this. I was thinking of creating a one-time account to do this push and removing the account.
With that said, my question is:
Is there a way to add the username and password inside the script so that when "sudo jamf enroll" runs, it uses the credential to bypass it?
I don't want the users to enter the credentials instead use a one-time script to run everything and complete it.