Skip to content

How can I hide the Task Sequence Progress Window

Featured Replies

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>

  • 7 months later...
  • 4 months later...
  • 2 years later...

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 *
'************** 

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.