Send Deployment Summary as email
-
Thursday, February 25, 2010 7:31 PMI would like to create a task etc that sends a deployment summary as email. Does anybody know how?
(using MDT2010 lite touch installing win7).
All Replies
-
Thursday, February 25, 2010 7:33 PMHeres some vbscript you could write your own to pipe in the summary data and pass it through an internal SMTP server.
-Dustin -
Thursday, February 25, 2010 7:49 PMthanks, but i have figured out the send part with a prg called postie(free command line email client) It will email me the bddlog. I have done a .bat file with all the commands that works.
But not shure how to add it to MDT2010. I need to create some kind of task etc. to enable it. :-) -
Thursday, February 25, 2010 7:56 PMthere are also some share-log options built in that report back deployment status but they're not as descriptive as the full logs.-D
-Dustin -
Thursday, February 25, 2010 9:07 PMModeratorJust do a run command line at the end of the task sequence and call your batch file. Just make sure the exe that you are calling is in a known place because a batch file cannot use a UNC path as a working directory
Tim Mintner Principal Consultant Xtreme Consulting Group http://deployment.xtremeconsulting.com -
Friday, February 26, 2010 4:57 PMthanks, i´ll try that! :-)
-
Friday, March 05, 2010 8:58 PMUnder "folder state restore" after "install applications" I created a task "run email" in the field commandline i added
folllowing (not sure thats ok) cscript.exe "%SCRIPTROOT%\copy.bat" I put the copy.bat in the scripts folder.
But in script i need to put varible that will run the script on the local computer and copy "postie" folder to local computer c:\temp
from the mdt server.
Any one have a clue? -
Thursday, March 11, 2010 11:14 PMIf you are using SCCM I've outlined a good solution here http://blog.danovich.com.au/2010/03/12/send-sccm-task-sequence-email-report/
-
Friday, March 12, 2010 12:06 PMno, im using MDT2010 Lite Touch!
-
Friday, March 12, 2010 12:23 PM
Rather then using a batch file, use a VBScript file. get the script to copy the file to the temp folder, and then Shell out to execute the command line. If you save the script file as ZTI[SOME NAME].vbs it will always be copied to the local machines scripts folder. If you need more help let us know but google is really your friend here.
-
Friday, March 19, 2010 9:23 AM
Thanks for all help. :-)
This is how i solved it.
open the task sequence (in my case the os for win7)
1.Created a script named ZTIsendmail.vbs under scripts. (as mention by Roger Ling it will be copied to the local machine, thanks Roger).
2.Added a new "Run command line" cscript.exe "%SCRIPTROOT%\ZTIsendmail.vbs"
Put the script in the last place after Restore groups.
3.Create a folder in deploymentshare called sendmail. (In my case it contains prg postie..google it).
4.Created a file called mdtsend.bat with send info and put it in to sendmail folder. (postie have info how to set it up).
The script contained (Im not a not a vbs techician)(First part creates a TEMP folder on the computer being installed)
(Second part copies the folder Sendmail from deployment share) It contais prg Postie... google it.
(Third part, runs mdtsend.bat file containing mail info where to send and what to send. the bdd.log file)------------------------------------------------------------------------
ParentFolder = "C:\"
set objShell = CreateObject("Shell.Application")
set objFolder = objShell.NameSpace(ParentFolder)
objFolder.NewFolder "TEMP"Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFolder "z:\sendmail\*", "c:\temp\" ,True
FSO.CopyFile "z:\sendmail\*", "c:\temp\", TrueParentFolder = "C:\"
Set WshShell = WScript.CreateObject("WScript.Shell")
obj = WshShell.Run("C:\Temp\mtdsend.bat", 0)----------------------------------------------------------------------------
Hope some one have use for this.
- Marked As Answer by ubba76b Friday, March 19, 2010 6:05 PM
-
Sunday, August 12, 2012 10:49 AM
Can u please explain what is the content of the .vbs file and it ralation to other files.
is there any prerequiste for this?
-
Tuesday, August 14, 2012 2:24 PM
Postie will work fine as long as the SMTP server will accept e-mail from the workstation. In our environment, only server VLANs are allowed to send e-mail through our SMTP server.
I created the following procedure to send e-mail notifications throughout the deployment porcess.

