Share via


ServiceUI.exe error

Question

Friday, November 29, 2013 8:17 PM

Hi!

I'm using the ServiceUI.exe from MDT 2013 to open cmtrace.exe with "x:\windows\temp\smstslog\smsts.log".

The command line is:

ServiceUI.exe -process:tsprogressui.exe cmtrace.exe "x:\windows\temp\smstslog\smsts.log"

I get error code 0xFFFFFFFF and in SMSTS.LOG:

If I run the command in an CMD.EXE (F8 in Windows PE) I got the same error.

All replies (5)

Friday, November 29, 2013 9:53 PM

Hi,

If I remember correctly I got the same error when trying to run 32-bit serviceUI.exe in a 64-bit Winpe or operatingsystem, could that be the case here as well?

Regards,
Jörgen

-- My System Center blog ccmexec.com -- Twitter @ccmexec


Saturday, November 30, 2013 2:51 PM

I hoped so but if I run a 64-bit ServiceUI.exe in 32-bit Windows PE it says:

E:\ServiceUI\x64>serviceui
This version of E:\ServiceUI\x64\ServiceUI.exe is not compatible with the versio
n of Windows you're running. Check your computer's system information to see whe
ther you need a x86 (32-bit) or x64 (64-bit) version of the program, and then co
ntact the software publisher.

If I run a 32-bit ServiceUI.exe in 64-bit Windows PE it says:

E:\ServiceUI\x86>ServiceUI.exe
The subsystem needed to support the image type is not present.

I've tried the 64-bit version in a full Windows 2012 from a CMD.EXE running as SYSTEM and that's working.


Tuesday, February 18, 2014 12:02 PM | 4 votes

A bit late for an answer. I think you solved it by now but for anyone who is wondering.

API [CreateProcessAsUser] Error: [2] is what is returned by ServiceUI.exe, basically it says that it cannot find the file that you want to run which in your case is cmtrace.exe

You can solve this problem by providing the full path to cmtrace.exe in your command line or copy cmtrace.exe to the same directory as ServiceUI.exe

Hope that helps.


Sunday, September 9, 2018 6:12 PM | 1 vote

A bit late for an answer. I think you solved it by now but for anyone who is wondering.

API [CreateProcessAsUser] Error: [2] is what is returned by ServiceUI.exe, basically it says that it cannot find the file that you want to run which in your case is cmtrace.exe

You can solve this problem by providing the full path to cmtrace.exe in your command line or copy cmtrace.exe to the same directory as ServiceUI.exe

Hope that helps.

Many years later, just wanted to say I was having this issue and found your answer and was my problem. I was using: ServiceUI.exe cmd instead of serviceUI.exe c:\Windows\System32\cmd.exe.

Thanks!


Tuesday, April 14, 2020 1:11 PM

Totally mad. Something that does not use path, but does not inform about it either...