question

Sampler9-3283 avatar image
0 Votes"
Sampler9-3283 asked MotoX80 answered

Task Scheduler Monthly Trigger

I am working on a project where the Task Scheduled Jobs need to be restored on another server. I have found Power Shell will do most of the work, however, there is no way to generate a Monthly Trigger for example the 3rd of every month. I am trying to find a good disaster recovery plan for Task Scheduler and am not finding any way to do this that isn't manual.

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MotoX80 avatar image
0 Votes"
MotoX80 answered

Run "schtasks.exe /query" and use the /xml switch to export the task definition as an xml file that you can then recreate on another server with "schtasks.exe /create".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.