Configuring Email Notifications in MDT Task Sequences

ajiiu.com 0 Reputation points
2024-11-20T16:22:40.5766667+00:00

When deploying operating systems using Microsoft Deployment Toolkit, how can a task sequence be configured to include sending an email as the final task upon completion of the deployment process? What are the necessary steps and custom scripts that need to be integrated into the task sequence to trigger the email notification, specify the recipient, subject line, and content of the email, and ensure that the notification is sent successfully once the deployment task sequence reaches its conclusion?

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
906 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 19,156 Reputation points
    2024-11-21T06:27:35.97+00:00

    Hi,

    To configure email notifications in MDT task sequences, you can follow these steps:

    Download and Prepare the Script:

    • Download the ZTISendMail script from a reliable source. Extract it to a folder, for example, D:\ZTISendMail.

    Create an Application in MDT:

    • Open the Deployment Workbench.
    • Create a new application with source files pointing to the ZTISendMail folder.

    Add the Application to the Task Sequence:

    • Edit your task sequence.
    • Add a new step at the end of the task sequence to run the ZTISendMail application.

    Configure CustomSettings.ini:

    • Modify your CustomSettings.ini file to include the necessary properties for sending an email. Here is a sample configuration:
    [Settings]
    Priority=Default, SendMail
    Properties=OSDSendMailFrom, OSDSendMailTo, OSDSendMailSubject, OSDSendMailBody, OSDSendMailSMTPServer, OSDSendMailIncludeBDDLog
    
     [Default]
     OSDSendMailFrom=mdt@example.com
     OSDSendMailTo=recipient@example.com
     OSDSendMailSubject=Deployment Completed
     OSDSendMailBody=The deployment has completed successfully.
     OSDSendMailSMTPServer=smtp.example.com
     OSDSendMailIncludeBDDLog=YES
    

    By following these steps, you can set up email notifications to be sent automatically at the end of your MDT task sequences.

    If you have any specific requirements or encounter any issues, feel free to ask!

    References

    [1] E-mail notifications for MDT - Spiceworks Community

    [2] Sending email when Task Sequence success/failure? - Configuration ...

    [3] Configure MDT to send an email when deployment is completed

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.