Help creating a custom trigger to re-enroll or run quickadd again? Or a command?

steventhemacman
New Contributor III

Hi All,

We have many random client machines that are in JSS, but the client does not have the MDM installed (for some reason) and therefore is not receiving some of the profiles we have scoped out. My thought was to create a policy to run quickadd to re-enroll them, with the custom trigger being that they don't have the MDM profile. I may be going about this wrong. But basically we need to re-enroll them so they get the Profiles (MDM, Restrictions, etc). It is like they are in JSS, but not "in" JSS.

Unless there is a command we can send out to do the same thing...

THanks!

3 REPLIES 3

stevewood
Honored Contributor II
Honored Contributor II

You don't necessarily have to run QuickAdd, you should be able to simply do:

jamf enroll

The trick would be creating a SmartGroup to capture the machines that do not have MDM enabled. Once you've clobbered the SmartGroup, the policy is easy.

steventhemacman
New Contributor III

Let me see if I can clobber

steventhemacman
New Contributor III

Running the "jamf enroll" command does not work. Not sure why. Quickadd seems to work (when it works). Quickadd is cranky sometimes.