Very new to Mac management and JAMF. I've been using a test Mac to test my enrollment and policies and noticed that if I reinstall OSX to test the OOBE, the policies I have set to "once per computer" don't seem to re-run.
Looking here, I see that there is a command to flush the policy history and effectively "reset" the computer. So, I ended up creating a script to run that command, set it to trigger upon enrollment and set the execution frequency to "ongoing". I also set the script priority to run before other actions.
I assume this should mean that when the test Mac has OSX reinstalled, when it completes enrollment, that script should be the first thing to run and the policy history should be cleared and all of the other policies set to trigger at enrollment and run once per computer should run, but they're not.
If I pull up the computer in question in JAMF Pro inventory and look at the policy history tab, I can see that the policy flush did run, but for whatever reason, none of the other policies triggered by enrollment ran.
Any ideas?