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