You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-06-09 17:02:49

TouTUN
Member
Registered: 2023-04-07
Posts: 4

Deploy task with ServiceUI.exe

Hi,

Is anyone get a solution to use ServiceUI.exe in a deploy task to interact with the local user ?

I get a error 5 but when i try localy with a system session (with psexec -s option) it's work but with the deploy task i just get the error 5 sad

Here is the log :

C:\Program Files\GLPI-Agent\var\https..__glpi.XXXXX_marketplace_glpiinventory_\deploy\workdir\64831f39028e2>exit -1

[Fri Jun  9 14:47:08 2023][debug] ================================
[Fri Jun  9 14:47:08 2023][debug] Started cmd: ServiceUI.exe -process:explorer.exe C:\Windows\notepad.exe
[Fri Jun  9 14:47:08 2023][debug] ================================
[Fri Jun  9 14:47:08 2023][debug]  Program to launch : [C:\Windows\notepad.exe]

[Fri Jun  9 14:47:08 2023][debug]  Command line      : [C:\Windows\notepad.exe]

[Fri Jun  9 14:47:08 2023][debug]

[Fri Jun  9 14:47:08 2023][debug]  API [CreateProcessAsUser] Error: [5]

[Fri Jun  9 14:47:08 2023][debug]

[Fri Jun  9 14:47:08 2023][debug]  =======================

[Fri Jun  9 14:47:08 2023][debug]  Exiting with [-1]

[Fri Jun  9 14:47:08 2023][debug]  =======================

[Fri Jun  9 14:47:08 2023][debug]

[Fri Jun  9 14:47:08 2023][debug] C:\Program Files\GLPI-Agent\var\https..__glpi.XXXXX_marketplace_glpiinventory_\deploy\workdir\64831f39028e2>exit -1

Offline

#2 2023-07-12 14:53:26

J2C99
Member
Registered: 2020-08-11
Posts: 107

Re: Deploy task with ServiceUI.exe

ServiceUI.exe étant lancé avec le compte utilisé par le service [glpi/fusioninventory]_agent ,celui-ci semble ne pas réussir son appel à CreateProcessAsUser.
Peut etre un RunAs  permettrait l'appel CreateProcessAsUser, en spécifiant l'utilisateur ?

Offline

Board footer

Powered by FluxBB