-3

I have a big problem with creating: clustered monthly task on windows server via PowerShell.

All info which I found about my problem was monthly, but locally. I need tasks on cluster.

Anyone can help me with some code to create that task ?

Best regards. Bartolini

Bartolini
  • 19
  • 2
  • 6
  • 1
    Have you checked [Register-ClusteredScheduledTask](https://learn.microsoft.com/en-us/powershell/module/scheduledtasks/register-clusteredscheduledtask?view=win10-ps)? – vonPryz May 17 '19 at 10:52
  • Yes, there is no monthly :( – Bartolini May 20 '19 at 04:17
  • Use, say, weekly schedule instead. As first step, [calculate](https://stackoverflow.com/a/5422046/503046) if it's being invoked on desired day and continue if so. – vonPryz May 20 '19 at 06:33

1 Answers1

0

I decided to create daily tasks. On startup parameters I will sent a day number and month. Then check on which date number and month I want to run that task, if it's match then execute.

Bartolini
  • 19
  • 2
  • 6