I wondering if someone has already work on how to create a new windows schedule task in Win2003, Win2008 and Win2008R2.
I have a set of
Windows Schedule Task
that
I need to be created on many servers and will like to have a TEM Task for that. Must of thems are to run a batch file to stop a list of services before a scheduled reboot. What it’s the best way to acomplish this with TEM. I have the batch file already set it up an running on each version. Only need a TEM Task to create it on each version of Windows. I believe Win2008 and Win2008R2 are the same type but Win2003 is different…
The “Schedule Wake-from-Standby” wizard creates TEM Tasks that create scheduled tasks. It will not create the scheduled tasks that you want, but it could be used as a model to see how to do it.
You can also use the “scheduled tasks” inspector in the debugger to build relevance to detect the task you create for the relevance.
I think you would just use the command line way of creating scheduled tasks, and just have an if/else statement to handle the different OS dependant commands.
I would recommend using parameters to store the common info that would be the same between both commands, just a matter of how they are put together. This will allow you to only have to modify the single parameter to change the scheduled task, rather than having to change the same info in both places within the TEM task.