0 votes

For monthly scheduled tasks, I would like to see "day" changed to a drop down list like so:
On the [number] [day] of each month at [time]

Some examples:
On the [15th] [day] of each month at [2:00 PM]
On the [2nd] [Tuesday] of each month at [2:00 PM]

Also, perhaps adding a "yearly" schedule with the following options:
On [month] [day]
On the [number] [day] of [month]

Examples:
On [April] [1]
On the [1st] [Monday] of [April]

by (1.1k points)

1 Answer

0 votes
by (216k points)

Hello,

Thank you for the suggestion. We'll add this to our TODO list.

As to the "yearly" schedule and On the [number] day of [month] option, you can implement this with the current functionality. For example, you can set up a monthly Scheduled Task that runs on the day of month that you need, and then check with the help of the If PowerShell returns True condition whether the current month is the month that you need. So, as in your example, if you need to run a Task on April 1 each year, you can set up a Scheduled Task that runs on the 1st day of each month, and then check in the condition whether the current month is April. To create such a Scheduled Task:

  1. Create a new Scheduled Task.

  2. On the 2nd step of the Create Scheduled Task wizard, select Monthly and On the 1st day of each month.

  3. Select the desired time and click Next.

  4. On the 4th step, add the actions that you want the task to perform.

  5. Click the Add Condition button.

  6. Select the If PowerShell script returns True condition and paste the following script:

     $currentMonth = [System.DateTime]::Now.Month
     $Context.ConditionIsMet = ($currentMonth -eq 4)
    
  7. Finish creation of the Scheduled Task.

0

Thanks. I can't think of any yearly tasks I would schedule right now, but can think of a good use for the monthly one.

Microsoft patches come out on the second Tuesday every month. I could create a task to add users to the admin group to help with patching, then remove them.

0

OK, good point. We'll think on implementing this in the future versions.

Related questions

0 votes
1 answer

the script repo examples are almost entirely written in ADSI, however powershell is now far more widely used, is it possible to have all scripts written in both ADSI and powershell.

asked Jan 5 by i*windows (260 points)
0 votes
1 answer

Shared mailboxes are treated as standard users, however they really should have a separate view. I would like to request that a new view is made avaiilable for Shared ... office location, data from HR systems, windows profile, etc are not really relevant.

asked Jun 23, 2023 by i*windows (260 points)
0 votes
1 answer

Hello, Using the "Inactive user allowed to log in" report in Adaxes, I want to be able to select specific OUs to exclude out of the scope in this report, or have the option to filter based on a user property such as Department.

asked Nov 8, 2022 by GronTron (270 points)
0 votes
1 answer

On scheduled tasks, business rules, and custom commands, inside an if statement, you have the option for it to be "AND" or "OR" in the condition. Can there be a ... a bunch of computer accounts to be deleted. We think this would be a good safety measure.

asked Mar 22, 2021 by mark.it.admin (2.3k points)
+1 vote
1 answer

HI, It would be very nice if one could add a description for an action set that then will display on top of the action set as a header. I find myself inspecting actions/ ... be very helpful to be able to see this in the header at first glance. Thank you

asked Feb 8, 2021 by digimortal (240 points)
3,343 questions
3,044 answers
7,766 comments
544,957 users