|
Post by lukasz on Oct 15, 2019 9:04:34 GMT
Hi Guys, I know you may be tired still helping with running UI++ from Task Sequence but I cannot handle it even myself after reading several posts etc. So what I am basically doing is preparation of Task Sequence which will be used for OS installation in manufacturer factory(offline media). Process assumes installation of wim image and most of the apps in factory, than computer is turned off, send to the office, turned on and task sequence again starts prompting for some computer details in order to finally join domain. In such scenario UI++ starts perfectly fine, but… in order to ease working on the scripts etc. I would like to start UI++ launching it from task sequence started from SCCM Software Center, and unfortunately cannot handle it for now. I tried two approaches 1. (this is the way it works ok when run as part of OSD TS) Task sequence with only one step: Run Command Line: .\UI++64.exe Package contains: I run the task sequence from Software Center, Task Sequence status in Software Center: Installing I see in Task Manager that UI++.exe process is running (so as TSProgressUI.exe and TSManager.exe) but I cannot see the UI++ window and cannot find log file generated by UI++. After couple of minutes if kill the UI++ process UI++ log file is saved to CCM\Logs folder It looks like UI++ process has been started, UI++ log file shows that XML file has been successfully processed, the only issue is that I cannot see the interface. 2. (This is the way described in pdf ) Task sequence with only one step: Run Command Line: ServiceUI.exe -process:.\TSProgressUI.exe UI++x64.exe Package: same content ServiceUI.exe was taken from MDT Toolkit Package(8456) - 64 bit, so as OS and UI++.exe Unfortunately the result in smsts.log: Command line "C:\WINDOWS\ccmcache\1w\ServiceUI.exe" -process:.\TSProgressUI.exe UI++x64.exe returned 4294967295 No UI++ log file – process just could not be started. Did anyone successfully started UI++ from task sequence run from SCCM Software Center? Is it possible? Regards Lukasz
|
|
|
Post by jmarcum on Oct 15, 2019 12:37:11 GMT
Try checking the box "disable 64-bit file system redirection"
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 15, 2019 17:38:34 GMT
Any update on this I am working on the same thing. Thanks
|
|
|
Post by Stuart on Oct 16, 2019 12:08:34 GMT
It looks like your -process argument has some extra characters. Try like this: -process:TSProgressUI.exe
It's looking for the name of the executable, not the path, so no need for the .\ there. No need to disable the 64-bit redirection either btw.
|
|
|
Post by lukasz on Oct 16, 2019 13:35:54 GMT
Hello Stuart,
thank you for your suggestion, unfortunately this might be not the root cause.
please find below smsts.log - I remove time\date details
![LOG[PackageID = 'EUP001F1']LOG]!> ![LOG[BaseVar = '', ContinueOnError='']LOG]!> ![LOG[ProgramName is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!> ![LOG[ProgramName = 'ServiceUI.exe -process:TSProgressUI.exe UI++x64.exe']LOG]!> ![LOG[SwdAction = '0001']LOG]!> ![LOG[ResolveSource flags: 0x00000000]LOG]!> ![LOG[SMSTSPersistContent: . The content for package EUP001F1 will be persisted]LOG]!> ![LOG[Package location: _SMSTSEUP001F1, C:\WINDOWS\ccmcache\27]LOG]!> ![LOG[sUniqueID.length() > 1, HRESULT=80004005 (..\resolvesource.cpp,253)]LOG]!> ![LOG[Local path: C:\WINDOWS\ccmcache\27]LOG]!> ![LOG[Resolved source to 'C:\WINDOWS\ccmcache\27']LOG]!> ![LOG[Command line for extension .exe is "%1" %*]LOG]!> ![LOG[Set command line: Run command line]LOG]!> ![LOG[Working dir 'C:\WINDOWS\ccmcache\27']LOG]!> ![LOG[Executing command line: Run command line with options (0, 4)]LOG]!> ![LOG[Process completed with exit code 4294967295]LOG]!> ![LOG[]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Matched Processes]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Process Found: [TsProgressUI.exe] ID [43800] SESSION [2]]LOG]!> ![LOG[]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Logon Lookup]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ [winlogon.exe] Session: [1] PID [712] [Target Session [2] = Unmatched]]LOG]!> ![LOG[ [winlogon.exe] Session: [2] PID [22208] [Target Session [2] = Match]]LOG]!> ![LOG[]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Launch Process]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Program to launch : [UI++x64.exe]]LOG]!> ![LOG[ Command line : [UI++x64.exe]]LOG]!> ![LOG[]LOG]!> ![LOG[ API [CreateProcessAsUser] Error: [2]]LOG]!> ![LOG[]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[ Exiting with [-1]]LOG]!> ![LOG[ =======================]LOG]!> ![LOG[Command line is being logged ('OSDDoNotLogCommand' is not set to 'True')]LOG]!> ![LOG[Command line "C:\WINDOWS\ccmcache\27\ServiceUI.exe" -process:TSProgressUI.exe UI++x64.exe returned 4294967295]LOG]!> ![LOG[ReleaseSource() for C:\WINDOWS\ccmcache\27.]LOG]!> ![LOG[reference count 1 for the source C:\WINDOWS\ccmcache\27 before releasing]LOG]!> ![LOG[Released the resolved source C:\WINDOWS\ccmcache\27]LOG]!> ![LOG[Process completed with exit code 4294967295]LOG]!> ![LOG[!--------------------------------------------------------------------------------------------!]LOG]!> ![LOG[Failed to run the action: Run Command Line. Error -1]LOG]!>
Did anyone managed to successfully run UI++ from SCCM Software Center?
regards
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 16, 2019 15:35:08 GMT
Lukas
I am having the same issue and I have yet to get it to run using the command you posted above ( with or without the extra .\) so what I did was I created having it run off of a PS script this however didn't fully work either. The TS ran successfully but the UI didn't I also didn't get an error or anything in the logs.
Here is what I did Added a PS script to the package to call the UI++64.exe Changed the TS command to:
ServiceUI.exe -process:TSProgressUI.exe %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File run-ui.ps1
If anyone out there has done this and put together a How To doc that would be super helpful.
Thanks
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 16, 2019 15:55:28 GMT
JUst to add I am trying to run this from within the Windows 7 OS as a Software Center in-place Upgrade. Is this possible or does only work within the WINPE boot?
Right now when I double click on UI++64.exe to test from within Windows 10 nothing happens. I am thinking maybe my config isn't correct so nothing is happening
Looking to just authenticate against AD
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="Win10 Upgrade" Icon="UI++2.ico" Color="#3366ff">
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="domain.org" GetGroups="False" ShowBack="True">
`<Field Name="Domain" ReadOnly="True" />
<Action Type="Info" Name="myInfo" Title="Welcome %XAuthenticatedUser%">
<![CDATA[UI++ 2.0 includes all of the power of UI++ 1.0 combined with UI App Tree!<br>
|
|
|
Post by Stuart on Oct 16, 2019 16:25:26 GMT
cc, I would check the UI++ log. If that bit of XML you posted is the entire contents of your config file that's probably you're problem, it doesn't look complete
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 16, 2019 19:12:59 GMT
Change my config to look like
<UIpp Title="Win10 Upgrade" Icon="UI++2.ico" Color="#3366ff"> <Actions> <Action Type="UserAuth" Title="User Authentication" Domain="smalltown.memorial-hospital.org" GetGroups="False" ShowBack="True"> `<Field Name="Domain" ReadOnly="True" /> <Action Type="Info" Name="myInfo" Title="Welcome %XAuthenticatedUser%"> <![CDATA[UI++ 2.0 includes all of the power of UI++ 1.0 combined with UI App Tree!<br>It's UI, <b>interactive </b>, evolved, and customized.<br>]]> </Action> </Actions> </UIpp>
I am getting the following log error and I see the start-end tag mismatch error line I'm just not sure what is incorrect from the congfig above
-- UI++ Startup ---------------------------------------- UI++ version: 2.11.1.2. UI++ Not running from within a Task Sequence UI++ Error parsing configuration file "UI++.xml": Start-end tags mismatch at position 562 [...ns> ] -- UI++ Finished ----------------------------------------
|
|
|
Post by Stuart on Oct 16, 2019 19:22:34 GMT
I opened Notepad++ and pasted your XML in, it looks like you have an extra character before the <Field ...> tag, and need to close the UserAuth Action tag.. Try this:
<UIpp Title="Win10 Upgrade" Icon="UI++2.ico" Color="#3366ff">
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="smalltown.memorial-hospital.org" GetGroups="False" ShowBack="True">
<Field Name="Domain" ReadOnly="True" />
</Action>
<Action Type="Info" Name="myInfo" Title="Welcome %XAuthenticatedUser%">
<![CDATA[UI++ 2.0 includes all of the power of UI++ 1.0 combined with UI App Tree!<br>It's UI, <b>interactive </b>, evolved, and customized.<br>]]>
</Action>
</Actions>
</UIpp>
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 16, 2019 19:45:51 GMT
Stuart that worked one last question hopefully. Right now the username is authentication against a domain can I get it to authenticate against an AD security Group?
Lukas I used Option #2 from you original post above and it ran successfully on my client device. I think you also may have a config error going on like I did.
|
|
cc
New Member
Posts: 10
|
Post by cc on Oct 16, 2019 20:07:30 GMT
Update I got it to work via security groups by adding the "Group= and GetGRoup=" to my config. See below
<Action Type="UserAuth" Title="User Authentication" Domain="smalltown.memorial-hospital.org" Group="SCCM SuperAdmin" GetGroups="True" ShowBack="True">
|
|