garethEds Posted December 18, 2017 Posted December 18, 2017 Is it me, or is there always something to learn about MDT. Now that it's working I've been looking into different configs and examples. This was pretty cool: http://supportishere.com/how-to-add-a-deployment-duration-to-the-mdt-litetouch-final-summary-page/ What other cool stuff is out there for MDT to do? Gareth
snagrat Posted December 18, 2017 Posted December 18, 2017 Not sure what the point is? I can get duration time from monitoring. We have the build process reboot the machine so it’s ready to go for the end user.
garethEds Posted December 18, 2017 Author Posted December 18, 2017 (edited) Not sure what the point is? I can get duration time from monitoring. We have the build process reboot the machine so it’s ready to go for the end user. I don’t bother about what the point is. It’s just cool. I like stuff like that. Each to their own. Innit. Edited December 18, 2017 by garethedmondson Original post sounded aggressive and arsey. 1
garethEds Posted December 18, 2017 Author Posted December 18, 2017 (edited) How do you get the reboot? I just stop at the final screen and when I continue it reboots. Shell is hidden too. Ahhha. Is it SkipFinalSummary=Yes That would work with a REboot? Edited December 18, 2017 by garethedmondson
snagrat Posted December 18, 2017 Posted December 18, 2017 How do you get the reboot? I just stop at the final screen and when I continue it reboots. Shell is hidden too. Ahhha. Is it SkipFinalSummary=Yes That would work with a REboot? FinishAction=Reboot
garethEds Posted December 18, 2017 Author Posted December 18, 2017 Yes - FinishAction=Reboot is already in my task sequence - but it still displayes the Final Summary screen. For an automated restart you would need both commands. Gareth
snagrat Posted December 19, 2017 Posted December 19, 2017 Yes you would need both. It only reboots automatically if no errors which is good 1
SHimmer45 Posted December 19, 2017 Posted December 19, 2017 The built in help has a full list of the variables which you can use (if you haven't already found that) 1
Arthur Posted February 2, 2018 Posted February 2, 2018 What other cool stuff is out there for MDT to do? Add the complete progression status to the MDT/SCCM progress bar In this post, I will customize the existing MDT progress bar in order to view the complete progression of the deployment. In my opinion one thing is really missing in the existing MDT progress bar, there is no way to know where we are during the deployment, we don't know how many steps are missing before the deployment is completed. That's why I decided to customize the progress bar. For that you will have to modify the ZTIUtility.vbs file. 2
Chuckster Posted February 2, 2018 Posted February 2, 2018 @Arthur, I've tried following the instructions but to no avail. Are you supposed to leave the current code and paste the new code above the current lot or remove the current code with the new code? Whichever way it's done it doesn't work. Assuming you have it working, is there any chance I could have a look how you've inserted the code?
Arthur Posted February 2, 2018 Posted February 2, 2018 (edited) Are you supposed to leave the current code and paste the new code above the current lot or remove the current code with the new code? Whichever way it's done it doesn't work. Make a copy of the ReportProgress function (and rename it to something else for backup purposes), then in the original ReportProgress function add or replace the code mentioned in the article (see the lines I have highlighted below). Before (Taken from ZTIUtility.vbs from 64-bit MDT 8450) Public Function ReportProgress(sMsg, iPercent) Dim iMaxPercent Dim oProgress Dim uStep Dim uMaxStep CreateEntry "Update progress [ " & iPercent & " ] : " & sMsg , LogTypeVerbose ' Try to create the progress UI object On Error Resume Next Set oProgress = CreateObject("Microsoft.SMS.TSProgressUI") If Err then Err.Clear ' Record the progress in the registry oShell.RegWrite "HKLM\Software\Microsoft\Deployment 4\ProgressPercent", iPercent, "REG_DWORD" oShell.RegWrite "HKLM\Software\Microsoft\Deployment 4\ProgressText", sMsg, "REG_SZ" on error goto 0 Exit Function End if On Error Goto 0 ' Update the progress On Error Resume Next iMaxPercent = 100 uStep = CLng(oEnvironment.Item("_SMSTSNextInstructionPointer")) uMaxStep = CLng(oEnvironment.Item("_SMSTSInstructionTableSize")) Call oProgress.ShowActionProgress(oEnvironment.Item("_SMSTSOrgName"), oEnvironment.Item("_SMSTSPackageName"), oEnvironment.Item("_SMSTSCustomProgressDialogMessage"), oEnvironment.Item("_SMSTSCurrentActionName"), (uStep), (uMaxStep), sMsg, (iPercent), (iMaxPercent)) If Err then CreateEntry "Unable to update progress: " & Err.Description & " (" & Err.Number & ")", LogTypeInfo ReportProgress = Failure Err.Clear Exit Function End if On Error Goto 0 ' Dispose of the object Set oProgress = Nothing End Function After Public Function ReportProgress(sMsg, iPercent) Dim iMaxPercent Dim oProgress Dim uStep Dim uMaxStep [color="#4B0082"]'Region http://www.systanddeploy.com/2018/02/add-complete-progression-status-to.html[/color] [color="#FF0000"]Dim uStatus, uStep_Division, uStep_Division_Round, uStep_Percent[/color] [color="#4B0082"]'End Region[/color] CreateEntry "Update progress [ " & iPercent & " ] : " & sMsg , LogTypeVerbose ' Try to create the progress UI object On Error Resume Next Set oProgress = CreateObject("Microsoft.SMS.TSProgressUI") If Err then Err.Clear ' Record the progress in the registry oShell.RegWrite "HKLM\Software\Microsoft\Deployment 4\ProgressPercent", iPercent, "REG_DWORD" oShell.RegWrite "HKLM\Software\Microsoft\Deployment 4\ProgressText", sMsg, "REG_SZ" on error goto 0 Exit Function End if On Error Goto 0 ' Update the progress On Error Resume Next iMaxPercent = 100 uStep = CLng(oEnvironment.Item("_SMSTSNextInstructionPointer")) uMaxStep = CLng(oEnvironment.Item("_SMSTSInstructionTableSize")) [color="#4B0082"]'Region http://www.systanddeploy.com/2018/02/add-complete-progression-status-to.html[/color] [color="#FF0000"]uStep_Division = uStep / uMaxStep * 100 uStep_Division_Round = Round(uStep_Division) uStep_Percent = uStep_Division_Round & " % completed" uStatus = oEnvironment.Item("_SMSTSCurrentActionName") & " - " & " Step " & uStep & " on " & uMaxStep & " - " & uStep_Percent[/color] [color="#FF0000"]Call oProgress.ShowActionProgress(oEnvironment.Item("_SMSTSOrgName"), oEnvironment.Item("_SMSTSPackageName"), oEnvironment.Item("_SMSTSCustomProgressDialogMessage"), uStatus, (uStep), (uMaxStep), sMsg, (iPercent), (iMaxPercent))[/color] [color="#4B0082"]'End Region[/color] If Err then CreateEntry "Unable to update progress: " & Err.Description & " (" & Err.Number & ")", LogTypeInfo ReportProgress = Failure Err.Clear Exit Function End if On Error Goto 0 ' Dispose of the object Set oProgress = Nothing End Function Edited February 2, 2018 by Arthur 1
Chuckster Posted February 2, 2018 Posted February 2, 2018 @Arthur, that worked like a charm - thank you :-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now