We have some users who need to wipe and reinstall their Macs with a baseline image we provide to them now and then. This baseline image automatically tries to enroll the computer with a QuickAdd package. However, as I'm sure many of you know, things get messed up if you try to enroll a computer that's already enrolled.
So what I want to do is find out how to tell if the computer - even though it's been wiped - is currently enrolled with the JSS. It would also be nice if there were a way to automatically unenroll it (so that re-enrollment would go smoothly), but I'll settle for knowing if it is or not.
Does anyone know how to approach this one?
