Skip to main content

I'm looking to create a script (hopefully automated from beginning to end) that will kick off after successful imaging, kill the JAMF binary, and modify the record in the JSS to be an un-managed inventory-only record.



I've tried several different ways of accomplishing this and none of them work properly and it's likely due to timing. Some of the methods I've tried without success are an at-reboot script and a package that drops a launchdaemon which calls a script to run the removeFramework command.



I'm unsure if I will be able to automate this into my imaging workflow due to the fact that most of my imaging have a workflow that installs several packages at reboot. What I've tried so far attempts to kill the binary before imaging is actually complete. If it turns out I can't have this portion automated, it won't be the end of the world to have a script the technician can run after imaging.



What I'd like to see if I can include is a modification of the script found at:
https://jamfnation.jamfsoftware.com/discussion.html?id=10188



I'm curious to see if anyone out there has successfully used curl to modify this part of the computer inventory:
external image link



We have a department which receives computers imaged and prepared by our technical staff, but they are not on our network and not supported by us. Rather than use a different imaging product for this, I'd like to take advantage of Casper Imaging and have the binary self-destruct at the end; all while keeping the modified computer record in the JSS for inventory only.



Any ideas? Suggestions? Did someone out there already do all of this and today's going to be a really easy day?

@mm2270 fun fact- it wasn't working in my test VM, but works fine on a regular computer. Which works for me.