Ok so I have to admit right up front I failed – I can’t create an ARS scheduled task but I can copy the parameters and schedule from one task to another which was why I was trying to do this in the first place. Back in June 2014 I’d tried to copy a task and posted on the Quest ( now Dell software ) support site a question http://en.community.dell.com/techcenter/iam/f/4817/t/19589175 but this got ZERO responses :-(.
Anyway creating a task is relatively simple, what I wanted really was a way to copy the parameter list and their values. This is reasonably simple:
Grab the task you want to clone:
$TaskObj = Get-QADObject `
-Identity $Global:taskDN `
-Connection $ARSConnection `
the edsaModule is the script that the scheduled task runs the other two attributes store the parameters and the schedule should you want to copy those too.
Once you have the existing task and you have created the new task just issue this command and the values are copied over for you:
-Identity $NewTaskObj.DN `