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

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...

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

×
×
  • Create New...