Resetting Once Per Computer policies

mire3212
New Contributor II

Ok. I'm quite new to managing OS X, but I have a test machine that we're running our policies against and I would like to know how to reset the Once Per Computer policy setting for this machine. I've tried running "jamf flushPolicyHistory" but the policy still isn't running (or available in Self-Service).

I'm sure there's an article somewhere I'm missing, but I'm not having good luck finding it.

Thanks!

3 REPLIES 3

mm2270
Legendary Contributor III

The flushPolicyHistory command should actually do it (you're running that from the Mac itself I presume?), but it partly depends on how the Smart Group, if you're using one, may have been set up. If a Mac doesn't fall into Scope for a policy because of a difference in inventory, said policy will never appear for it, even if the policy was flushed.

Alternatively, you can try going into the Policy itself, clicking the Logs button and locate the policy run for that Mac, and click the Flush button next to it. Again, this will not override scope, so while in the policy, check to see how you've set that up.

mire3212
New Contributor II

Thanks! I did see that the policy eventually ran, but it never seemed to show up in the Self Service application.

davidacland
Honored Contributor II

When I'm testing a policy and need to test it out multiple times I often set the execution frequency to on-going. Once you've tested it and are happy you can change it to once per computer but at least it gets that part out of your way while you are developing it.

If its not appearing in Self Service there could be a load of other possible reasons, the most likely being the scoping. Not sure if you are using smart groups for scoping but you could try just scoping to the test Mac to rule that possibility out.