Jump to content

Recommended Posts

Posted

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.

Posted (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 by garethedmondson
Original post sounded aggressive and arsey.
  • Thanks 1
Posted (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 by garethedmondson
Posted
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

Posted

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

  • 1 month later...
Posted
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.

 

iUVe0X.jpg

  • Thanks 2
Posted

@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?

Posted (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 by Arthur
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...