Share via


calling ServiceUI.exe

Question

Monday, April 6, 2020 6:34 PM

at work we have our working task sequence.   like so many I'm working from home and in my home lab I wanted to update some of our menu items in our build.   In our current (and working) task sequence we run this command:

"%DeployRoot%\Tools\architecture%\ServiceUI.exe" %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -WindowStyle Hidden -ExecutionPolicy unrestricted -file "%DeployRoot%\Scripts\RBO\Menu.ps1"   

and Menu.ps1 throws up a menu users can pick and choose different build information.   When I run the same command in my home lab I keep getting this error:

Exiting with [-196608]

so I googled around and I found some posts that use -process:TSProgressUI.exe  so I copied the tsprogressui.exe to my %deployroot% and it still fails.   In the SMSTS.LOG it only says "failed to run the action Custom Menu: Result -1

I'm running CB 1910 and OSD works fine if I remove the custom menu step.   

mqh7

All replies (4)

Tuesday, April 7, 2020 3:13 AM

Hi,

Thanks for posting in TechNet.

How about creating a package with ServiceUI.exe and your script, then run a Command Line step?

Also refer to: How can I deploy a customized Windows 10 start menu using System Center 2012 R2 SP1 Configuration Manager ?

Please note: The link is not from Microsoft, just for your reference. Thanks for your time.

Best regards,
Simon

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, April 7, 2020 5:29 PM

thank you but that does not answer my question.    The code I provided works in one environment but not another and I need to understand why.   This Menu.ps1 reads an .INI file and parses that .INI file.  then it uses data it read and creates TS Variables so I need it to run as is.

mqh7


Thursday, April 9, 2020 1:55 AM

Hi,

Thanks for your information.

Please help firstly check if we can successfully run the Menu.ps1 PowerShell command locally. 

Here is a example about ServiceUI.exe for your reference:
Task Sequence : AC Power Check

Thanks for your time.

Best regards,
Simon

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, April 14, 2020 2:44 AM

Hi,

May we know the current status of the question? If there is any other assistance we can provide, please feel free to let us know, we will do our best to help you.

Thanks and regards,
Simon 

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].