Jump to content


  • 0
anyweb

How can I hide the Task Sequence Progress Window

Question

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

6 answers to this question

Recommended Posts

  • 0

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

  • 0

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.