Create your own MDT Final Summary wizard with PowerShell
https://www.systanddeploy.com/2018/11/create-your-own-mdt-final-summary.html
In this post I will show you how to replace the existing final summary wizard with a GUI created with PowerShell and Mahapps. This wizard will also a log folder that will contain deployment logs and event logs in order to have the computer state at the end of the deployment.
By defaut the MDT final summary wizard looks like as below:
It's displayed if the skipfinalsummary is not set to TRUE or YES.
This wizard is composed of two files, as each MDT wizards.
- Summary_scripts.vbs: the code part
- Summary_Definition_ENU.xml: for the deign part
To understand how works an MDT wizard, see here my old post.
This wizard is launched by the script upgradesummary.wsf.
How to get it ?
How to integrate it ?
1 / Copy the folder SD_Summary_Wizard in the Deploy folder or at the rot of your deployment share.
2 / Set the SkipFinalSummary to YES in the customsettings.ini, this way the existing wizard won't be displayed.
You can also create a "Set a TS variable" step in your Task Sequence, as below:
- Step type: PowerShell script
- Command line: %DEPLOYROOT%\SD_Summary_Wizard\Run_Final_Summary.ps1
How it looks like ?
See below the new final summary wizard created with PowerShell depending of the result.
Note that two buttons are available:
- View log files: Allows you to open the log folder
- Finish: Will close the Window
Furthermore, the Finish and Close buttons will do the below actions:
- Create a folder "C:\OSD_Logs"
- Copy the DeploymentLogs folder in "C:\OSD_Logs\Deploy_Logs"
- Copy smsts.log in "C:\OSD_Logs\Deploy_Logs"
- Create system and applications event logs file, .evtx, in folder "C:\OSD_Logs\EVTX"
- Copy them in "C:\OSD_Logs\System_Logs"
- Copy Panther folder in "C:\OSD_Logs\System_Logs"
Deployment OK
Deployment OK - Without errors |
Deployment OK - With error or warning |
If not, it will be displayed as below:
Deployment failed |
The wizard in action
In the test below, I have executed a custom Task Sequence on mu computer
What's next ?
In the next wizard version, I'll add some other features:
1 / Differents menus
- Deployment Summary
- Intalled applications
- Contact in case of errors
2 / Possibility to change the wizard language
3 commentaires
Hi I tried your new final summary wizard, and I love it except that I keep getting a powershell window that says "No result file" It displays the lines multiple times, at least 5 lines. When I click the finish button on the wizard, it goes away the same time the wizard does. I appreciate your help, thanks.
Same here, "No result file"
Hi
I am getting the same Error MSG.
No Result Found..
Please advise
Enregistrer un commentaire