bp88 / JSS-Scripts

Random scripts for use in the Jamf Pro
188 stars 61 forks source link

Increase frequency of run time? #28

Open syoung-quizlet opened 3 years ago

syoung-quizlet commented 3 years ago

Currently it seems it runs once a day. Is it possible to increase that?

Current Run Time: Thu Aug 12 10:59:05 PDT 2021
User will be reminded after: Fri Aug 13 10:59:05 PDT 2021
syoung-quizlet commented 3 years ago

I have the re-notification set to 7200 seconds

bp88 commented 3 years ago

Sorry for the delay in responding back.

The OSUpdateNotifier.sh will only run once a day if you have set an End Date and it is past the End Date when the script executes. Once it is past the End Date, the user will get notified X amount of times (based on how many deferrals/postponements are left) and that notification will take place every 24 hours. That's hard coded into the script.

The re-notification period comes into play when you have set the Nag Date and it is past the Nag Date (but before the End Date assuming you've set that). The idea here is that you get to control how often the user is notified to update and the user has no control over this. You can modify the re-notification period as part of the script.

Let me know if this answers your question.