Hi,

Is there a way to run a scheduled task once per user?

I am trying to set up a task which will be run daily to alert the user that their account will expire in 14 days, but I don't want them to receive the alert each day until the account has expired, I just want one single email when the expiry falls within 14 days of the alert running.

Thanks
Danny

by (200 points)

1 Answer

by (216k points)
Best answer
0 votes

Hello Danny,

If you set up the conditions of your Scheduled Task as on the screenshot below, this will do the job:

Related questions

The script create two reports of inactive workstation operating systems. The report is too detailed to run from one of the adaxes reports. Basically how can I set the script up to ... sure How I did this but I can't find it now (probably something simple).

asked Nov 30, 2022 by mightycabal (1.2k points)
0 votes
1 answer

How do we set up an e-mail notification (only once per user) as an scheduled task (ex. every hour) based on the property "accountExpires"? Some background: Our HR-software ... to achive this result, do you have any suggestions on how to solve it another way?

asked Jan 17 by Handernye (120 points)
0 votes
1 answer

I'm trying to setup a quick automations to drop a notification into a Micrsoft Teams feed using their Webhook integration. I've managed to make Webhooks work ... -body $body -ContentType 'application/json' Any assistance with this would be gratefully received

asked Jan 20, 2020 by richarddewis (260 points)
0 votes
0 answers

Hello, We have a task which checks every hour if jobs have been added to a list (CSV-File) and if so will start provisioning tasks including Microsoft Teams. If ... job has completed or is still running to prevent duplicate runs. Is this somehow possible?

asked 6 days ago by andrep (20 points)
0 votes
1 answer

Similar to Powershell's "whatif"? I'd like to enable this scheduled task - But would like to confirm who will actually be affected before enabling this. Is there at least ... objects in the console log? I could run that before adding the 'modify' actions back.

asked Jun 25, 2024 by msinger (230 points)
0 votes
1 answer