Client Management Suite

 View Only
  • 1.  Altiris 7.1 Send E-mail Task - send as job user

    Posted Jun 19, 2012 04:30 PM
      |   view attached

    I am trying to set up a task that will deliver an e-mail to an infrastructure technician whenever a support technician runs a specific job in Altiris DS 7.1. In NS, there is a task titled "Send E-mail". It would be ideal to be able to simply add this task to a job that will deliver a message to a specific person notifying of the job that has run, however I also want the e-mail to be delivered from the support technician who also ran that job. I have tried inserting %jobuser% into the Specify: Name: field (see attached) however the resulting received e-mail just displays %JOBUSER% in the From: field. Obviously, whatever you put in the Name: field is what gets set as the recipient for the delivered e-mail.

    Does anyone have any idea how add a task to a job in DS 7.1 to simply deliver an e-mail to a specific recipient notifying that a job has run as well as list which user that ran that job? I'm assuming that I should be able to do this with the Send E-mail task. Even if I could insert in the message body the name of the support technician that ran the job that would be great.

    Thanks to anyone who has a solution

    Greg

     

     



  • 2.  RE: Altiris 7.1 Send E-mail Task - send as job user

    Posted Jun 19, 2012 05:06 PM

    Also, just to add, this would be a client run job. Basically, I want to create a job that joins a PC to the domain and into a specific OU and then notifies our AD administrator that the job was run (either successfully or failed) as well as the name of the support technician that had ran the job.



  • 3.  RE: Altiris 7.1 Send E-mail Task - send as job user

    Posted Aug 13, 2012 01:07 PM

    What you could do is simply create a powerShell script and add this to the job you run to configure the clients or do whatever you want. A sample would be this:

    send-mailmessage -from "friendly name <smptsender@domain.com>" -to "friendly name <name@domain.com>" -subject "Your subject goes here" -body "Whatever body text you desire." -smtpServer YOURSMTP

    Of course you need to replace contents with the one matching your environment, but from and to addresses have to keep the format you see "FriendlyName <some.email@domain.com>", but you can dig that yout from the PS help context...

    -BBC