Send Mail if there is an error in Task-Sequence

Target: Send mail / smsts.log if there is an error in a task-sequence to support or helpdesk

In one of my previous post I discripted howto “Copy the smsts.log to a network share during a task-sequence if there is any error in the task-sequence” -> I modified the last step -> to send a mail directly to the helpdesk if there was an error in the task-sequence.

I wrote a small GUI that will be shown if there was an error in a task-sequence. The tool automatically pre-fills the subject with the computername / the mail to from the config file and the mail-body.

This is the view in the task-sequence once an error occurs:

1

2

And the result in the mailbox of the helpdesk / or in the ticket system:

3

Download the tool from the following link: click here

The download includes the .exe file and a config xml file:

4

You need to adapt the config.xml with your configuration details:

5

Enter your smtp server with the port. Enter the mail details from: to:

If you set active to “no” that would mean that your SMTP-Server accepts mails from anonymous. In that case you can skip the username and password in the Config.xml

Enter the logshare name -> the once that is configured in the “Connect to Network Folder” step in the task-sequence.

Afterwards place both files in a package and deploy it to the required distribution-points and add the following step in the task-sequence in the part “Log Capture”:

6

7

There is one prerequisite – you need to active Windows Powershell Support in your boot image configured in the task-sequence.

8

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s