Interactive (user must be logged on to run) Software Delivery Tasks, including Inventory tasks (User, Recreate User) return a status of "Failed to start" with an exit code of 2147943568. You should also see an entry in the agent.log file like the following: Steps to recreate scenario 2: Note: Why this disconnect of the explorer process and the logged on user occurs is not yet determined.
Date: Jan 20 17:18:36:001
Description: Failed to launch SWD task 'User Inventory' with command line 'AeXInvSoln.exe /hidden /s AeXInvSolnUsr1.ini': Unable to find running process with interactive user credentials: (-2147023728)
Steps to recreate scenario 1:
Steps to recreate scenario 2:
Note: Why this disconnect of the explorer process and the logged on user occurs is not yet determined.
The NS Agent cannot impersonate the context of the current logged-on user, or locate the explorer.exe process that should be running in the context of the currently logged on user.
Scenario 1: The value for Shell in registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon has been changed from the default Explorer.exe
Scenario 2: The process explorer.exe is not running (should be obvious because no icons, task bar or systray, is visible), or is running as a user other than the logged-on user. This can be confirmed by running Task Manager, locating the explorer.exe, and verifying what User Name is listed beside this process.
Ensure that the value for Shell in registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon is set to Explorer.exe.
An enhancement (#127252) has been submitted to request the NSAgent process evaluate the Shell value and leverage UI from that executable, if possible. Or to perform a prerequisite check prior to installation and task startup, so if the shell is not one under which we can operate, to notify the user and close gracefully.
Windows XP, 2000, NT4