Skip to main content
Question

Remove Framework Script and Kill Self Service


Forum|alt.badge.img+22
  • Honored Contributor
  • 289 replies

We are now allowing our students to take their laptops with them after they graduate. I have a policy set up that my Team will run via Self Service to run some scripts to do things like:
Remove licensed software
Change Admin password
Convert Mobile to Local account
Unbind from Active Directory

All pieces are working so far but I want to add in a piece at the end to run a jamf removeFramework command so Jamf is removed from the device and then kill the Self Service process. Any recommendations on how to accomplish?

6 replies

scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • May 8, 2020

@TomDay - see this thread. I've used similar scripts/processes as those listed so this should help you out.

Unenroll Macs from Jamf


Forum|alt.badge.img+22
  • Author
  • Honored Contributor
  • 289 replies
  • May 9, 2020

@scottb Wow exactly what I need to get this rolling, thanks! I'll give this a go on Tuesday when I go back on site. Quick question about that script, I don't see a reference to a Jamf user account, only a password, in regards to deleting the computer?


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • May 9, 2020

@TomDay - not sure any of these delete the Jamf account...I've never worried about that, but I guess that could be added as well. The scripts referenced in that page are admins that I assume are used by support people - aka, normal users not hidden.
I suppose adding some lines to delete the Jamf account could be done though.


Forum|alt.badge.img+22
  • Author
  • Honored Contributor
  • 289 replies
  • May 10, 2020

Sorry I meant I didn't what accounts to use when using the curl and delete commands for the removing the computer from Jamf. Just looked up the documentation for curl and jamf API, I understand it now.


Chris_Hafner
Forum|alt.badge.img+23
  • Jamf Heroes
  • 1716 replies
  • May 11, 2020

Great. Let me know if you have any questions. I imagine that this will be on everyone's minds sooner than later!


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • May 11, 2020

Sorry @TomDay - I misread your question which in looking at it today seems clear. In a Corona-haze I guess. Glad you sorted things.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings