Share via

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?

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 22,271 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

    Was this answer helpful?

    0 comments No comments

Your answer

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