Jump to content
blung

Add Script Log Info to Email Body

Recommended Posts

Created a script to run a .ps1 file on a server which works. Need to send email of script results created in the associated script log. Tried several ways but only get the word @%shellresults%@ in the email body. Don't have much SQL background. Any help is appreciated.

Script Config:

image.png.4aae7d71a9294503d60c1a06d8eaa0ca.png

 Breakdown of steps 3,4,5

image.png.8d3e95cc270d97b40b918ff0a47ecfa4.png

image.png.f5e14b9f29cffa797202ad0ca823a2e7.png

image.png.97918685d7c02c7f2fcb7a29b0be1bc9.png

The info in the Script Log trying to get into body of email

image.thumb.png.ab7430262340dc4eedfebeedc14003ff.png

image.png

Share this post


Link to post
Share on other sites

Sorry everyone, just found last step in email body had wrong variable. script and email now working.  

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...