Trigger a Check In - Printers

eusdhelpdesk
New Contributor II

Good Morning,

I'm trying to create a script that is accessible in Casper Remote for wiping the printing system and re-applying the printers.

We have our policies set to "Once per Computer" for applying printers at each site, I tried a script that just does recon and a policy check but it doesn't seem to trigger the "Once per Computer" policy, even though it's been reset and recon has been run.

Is there a better way to do this? Some of our end users are not tech savvy and all they require is a printing system flush. I've made a self-service policy for each site that works well, I'm trying to create another way to accomplish this.

1 REPLY 1

mm2270
Legendary Contributor III

I'm not sure I understand. When you say "even though it's been reset" do you mean the policy has been reset? or the printing system? The latter will not trigger a Once per computer policy. Once per computer is exactly as the name implies. Once it runs, it won't run again unless the policy log for the computer or the entire policy log has been flushed and reset.
If you're looking for something that will run again based on inventory data, it will need to be set to "Ongoing" and scoped to a Smart Group that is looking for specific information, such as lack of installed printers.
Or, you can set up a policy that will only run on a custom trigger, something like sudo jamf policy -trigger "ReAddPrinters"
Set the policy scope to All Computers, but leave it at only the custom trigger and Frequency set to "Ongoing"

Then in your policy that actually resets the printing system, add that command above as something to run after it completes, either as a script or in the Command to Run section, and it should manually trigger the policy that adds the printers back in.

Hope that helps.