Launch Application in Task Sequence in OS (ServiceUI)

Just another quick post, mostly for my own future reference so I remember how I did this… Similar Posts but different enough

This is different because I’m doing it during it while in Windows, like testing IPU.

This will launch the program of choice, in my example, CMD.exe, which I use for testing / troubleshooting all the time, but it also has the benefit of closing he progress bar for you.

Old Way (Which left progress bar open):

ServiceUI.exe -process:tsprogressui.exe "%WINDIR%\System32\cmd.exe"

New Way, closes progress ui then launches command prompt (or whatever exe you’d like)

ServiceUI.exe -process:explorer.exe %SYSTEMROOT%\System32\WindowsPowershell\v1.0\powershell.exe -command (new-object -ComObject Microsoft.SMS.TsProgressUI).CloseProgressDialog() ; start-process -wait -filepath %SYSTEMROOT%\system32\cmd.exe


Requires that the step has a package associated with it, and the package has ServiceUI.exe (which you can steal from MDT)


1 thought on “Launch Application in Task Sequence in OS (ServiceUI)”

  1. Hello Gary

    thanks for the post. Did you try to run iexplorer.exe instead of cmd.exe. I do but no success.

    Please, let me know if it works to you.



Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.