Video Screencast Help
Endpoint Management Community Blog

Missing example of scheduling a job in DS through the ASDK

Created: 17 Oct 2006 • Updated: 29 May 2007 • 2 comments
jjesse's picture
0 0 Votes
Login to vote

Q:
In the newest ASDK there is a .DLL for working on scheduling jobs in DS through script. However, there is not a help file or anything in the examples folder.

Does anyone have an example of scheduling jobs through the ASDK for Deployment Server?

Thanks

Comments 2 CommentsJump to latest comment

jgo's picture

With the latest release of the ASDK there are some examples for DS located in %Program Files%\Altiris\Altiris ASDK\Samples\Deployment Solution\VBS

There is a VB script example in there for scheduling jobs.

This piece of text looks like the most likely candidate for you.

'------------------------------------------
' CreateJobSchedule
'------------------------------------------
wscript.echo "CreateJobSchedule"
scheduleID = scheduleManagement.CreateJobSchedule(computerID, jobId, false, "ASDK", _
"" & vbcrlf & _
"" & vbcrlf & _
" 9/12/2007 5:24:21 PM" & vbcrlf & _
" 5" & vbcrlf & _
" 1" & vbcrlf & _
" Hours" & vbcrlf & _
" 0" & vbcrlf & _
" 0" & vbcrlf & _
" " & vbcrlf & _
"")
wscript.echo "CreateJobSchedule complete, ID: " & scheduleID

John Golembiewski
Midwest Practice Principal
ITS Partners
Jgo@itsdelivers

-2
Login to vote
jjesse's picture

Thanks, it seems I was missing a lot of thing w/ my download of the ASDK. I redownloaded it and noticed there were a ton more samples and an updated .CHM file that helps out.

thanks

Jonathan Jesse Practice Principal ITS Partners

+3
Login to vote