MDT: Deployment Success/Error Mail notification
Hello Community, I would like to extend our MDT mail notification and came across this link:
https://www.systanddeploy.com/2017/03/mdt-monitoring-deployment-successerror.html
I would like to call the whole thing as a tasksequence at the end of the deployment, and not have to enter the computer name manually, but that the $env:COMPUTERNAME is taken from MDT.
Can someone help me to adapt the script so that the XML file with the parameters is already part of the PS script, and that as mentioned above the $env:COMPUTERNAME is taken instead of the manual entry.
I thank you already for your support.
Best thanks
Stefan