Running 2 Casper policies, but at seperate times

Contributor III


We are running Casper JSS 9.101. We want to:

  • run Casper policy 1.

  • a week later, run Casper policy 2, but only if Casper policy 1 has been successfully completed.

As far as I know, there's no simple way to do this.

We could go to the Casper Policy 1 logs, see which MacBooks has this completed, then manually create a static group and scope it to Policy 2. That will be a pain.

Is there any other way to achieve this?

As far as I know, casper doesn't check a policy has ran before starting another policy, unless it is a direct event call.

I don't know if this can be achieve by Extension attributes?


Valued Contributor III

Easy one: Have Policy 1 do a touch command that places an empty file on the Mac. Make sure the policy updates inventory after running.

Have policy 2 scoped to a smart group with criteria “has file” with the name of the file you used in policy 1.

If you want to get cute, you could have policy 2 cleanup the dummy file