Jump to content




Sign in to follow this  
anyweb

How can I hide the Task Sequence Progress Window



Recommended Posts

by default when you execute some action (like displaying a HTA or a script or whatever) during a Task Sequence in Configmgr, the Installation Progress window will be present Infront of your work of art, to avoid this, you can use a backend javascript .js file (such as the deployment.js included in the Windows-noob.com Multipurpose FrontEnd HTA), include the following lines to hide the progress bar while the HTA is being displayed

 

var oTSProgressUI = new ActiveXObject("Microsoft.SMS.TSProgressUI");
oTSProgressUI.CloseProgressDialog();

 

your backend Javascript file is in turn referenced by the FrontEnd HTA using the src command eg:

 

<script type="text/javascript" src="DeployMenu.js"></script>

Share this post


Link to post
Share on other sites


and if using a .VBS file try the following

 

Dim oTSProgressUI


Set oTSProgressUI = Wscript.CreateObject("Microsoft.SMS.TSProgressUI")
oTSProgressUI.CloseProgressDialog()

Share this post


Link to post
Share on other sites

anyweb.

 

I've tried using the .VBS code you specified above which successfully closes the Progress Bar, but it also hides/closes my HTA.

 

I've included the code below. What am I doing wrong?

Option Explicit
Dim ReturnCode
Dim objShell : Set objShell = CreateObject("WScript.Shell")
Dim GetScriptPath : GetScriptPath = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\", -1, 1) - 1)
'Dim oTSProgressUI

'**********
'* Hide TSProgressUI *
'**********
'Set oTSProgressUI = Wscript.CreatObject("Microsoft.SMS.TSProgressUI")
'oTSProgressUI.CloseProgressDialog()

'**********
'* MAIN *
'**********
ReturnCode = objShell.Run ("cmd /c " & GetScriptPath & "\ServiceUI.exe %SYSTEMROOT%\SYSTEM32\mshta.EXE " & GetScriptPath & "\promptforpassword.hta", 1, True) 
Wscript.Quit(ReturnCode)
'**************
'* END MAIN *
'************** 

Share this post


Link to post
Share on other sites

why are you running the hta using serviceui, I normally 'call' the hta via the task sequence

Share this post


Link to post
Share on other sites

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
Sign in to follow this  


×