This little vbscript for sending an smtp message is useful to put as the last task of a Altiris Deployment Server job so that it emails the tech after the job has completed successfully. The following DS variables are used: %JOBUSER% -- the person who ran the job in Deployment Console %NAME% -- the name of the computer in Deployment Console %JOBNAME% -- the name of the job that was run in Deployment Console In my version of this script, I have the "domain.com" portion in the From & To sections set to the domain of my organization. The Textbody section can have as much info as you want.
' Notify Tech when complete 'vbscript ' ===== Send Notification E-Mail =====Set objEmail = CreateObject("CDO.Message")objEmail.From = "%JOBUSER%@domain.com"objEmail.To = "%JOBUSER%@domain.com"objEmail.Subject = "%JOBNAME% | %NAME%"objEmail.Textbody = "Altiris Deployment Solution job: %JOBNAME% was run on computer: %NAME% by %JOBUSER%."objEmail.Configuration.Fields.Item _("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2objEmail.Configuration.Fields.Item _("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _"exchange1.umcaz.edu"objEmail.Configuration.Fields.Item _("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25objEmail.Configuration.Fields.UpdateobjEmail.Send' ===== Destroy Objects when Finished =====Set objEnv = Nothing Set WshShell = Nothing
Edit: Someone found out this only works if you have security turned on in the console.
I've attempted to reproduce an alternative for DS 7.1/ITMS and above here: https://www-secure.symantec.com/connect/articles/emailing-user-job-completion-smp-71 in an article where I create the token required. It is pending release at the time but i'll forget if i wait any longer.
There reason i'm posting on a very old thread is because searching still provides this result but to the wrong product if you wanted the solution for ITMS/CMS etc.