You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Search in All Title Contents

Configure MDT 2010 to send an email when deployment is completed

May 03 2011

A while ago me and fellow MVP Mikael Nystrom created a small vbscript that sends an email when the deployment is completed... Here it is  :)

Download ZTISendmail

Update 2011-06-30: Added the testmail.vbs script for troubleshooting purposes, this is just the CDO.Message code, no MDT involved at all. Run via cscript.exe testmail.vbs to verify your smtp server is correctly configured.


  1. Download and extract the file to a folder, say D:\ZTISendMail
  2. Using Deployment Workbench, create an application using the following settings
    Application with source files
    Application name: ZTISendmail
    Source Directory: D:\ZTISendMail
    Specify the name of the directory that should be created: ZTISendmail
    Command Line: cscript.exe ZTISendmail.wsf
    Working directory: .\Applications\ZTISendmail
  3. Add the ZTISendmail application as the final step of the task sequence (se below screenshot)
  4. Configure your rules (customsettings.ini) using the sample customsettings.ini file (content below).

Priority=Default, SendMail

_SMSTSOrgName=%OSDComputername% soon to be in service...

OSDSendMailSubject=Mail from MDT01
OSDSendMailBody=The computer: %OSDComputerName% was installed at: #Now()#

/ Johan

Happy deployment, and thanks for reading!

What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive