Execute-ProcessAsUser : Exit code 1

I have been working on this script that is meant to install as current user. I started getting fail installs. so I figured I messed up somewhere. let me copy a new ADTK and just put the line to install as current user.

Execute-ProcessAsUser "composerlaunchpad.exe" /S

I’m getting exit code 1 in the log saying it doesn’t have access. the PC has no security stack and Im running it for testing with PSexec

C:\Users\cookie\Downloads\PSTools\PsExec.exe -s -i "C:\Users\cookie\Downloads\Noble 115 v2\Deploy-Application.exe"

The Log
<![LOG[[Pre-Installation] :: Evaluate disk space requirements.]LOG]!><time=“07:53:48.149-240” date=“08-17-2020” component=“Show-InstallationWelcome” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Retrieve free disk space for drive [C:].]LOG]!><time=“07:53:48.180-240” date=“08-17-2020” component=“Get-FreeDiskSpace” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Free disk space for drive [C:]: [447480 MB].]LOG]!><time=“07:53:48.196-240” date=“08-17-2020” component=“Get-FreeDiskSpace” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Successfully passed minimum disk space requirement check.]LOG]!><time=“07:53:48.227-240” date=“08-17-2020” component=“Show-InstallationWelcome” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Get deferral history…]LOG]!><time=“07:53:48.227-240” date=“08-17-2020” component=“Get-DeferHistory” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\PS_AppDeployToolkitMain_3.8.2_EN_01].]LOG]!><time=“07:53:48.243-240” date=“08-17-2020” component=“Convert-RegistryPath” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\PS_AppDeployToolkitMain_3.8.2_EN_01] does not exist. Return $null.]LOG]!><time=“07:53:48.243-240” date=“08-17-2020” component=“Get-RegistryKey” context=“NT AUTHORITY\SYSTEM” type=“2” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: User has [2] deferrals remaining.]LOG]!><time=“07:53:48.259-240” date=“08-17-2020” component=“Show-InstallationWelcome” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Check for running application(s) [iexplore]…]LOG]!><time=“07:53:48.290-240” date=“08-17-2020” component=“Get-RunningProcesses” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Application(s) are not running.]LOG]!><time=“07:53:48.321-240” date=“08-17-2020” component=“Get-RunningProcesses” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: User has the option to defer.]LOG]!><time=“07:53:48.368-240” date=“08-17-2020” component=“Show-WelcomePrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: User selected to continue…]LOG]!><time=“07:53:50.228-240” date=“08-17-2020” component=“Show-InstallationWelcome” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Check if PowerPoint is in either fullscreen slideshow mode or presentation mode…]LOG]!><time=“07:53:52.281-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: PowerPoint application is not running.]LOG]!><time=“07:53:52.297-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: PowerPoint is running in fullscreen mode [False].]LOG]!><time=“07:53:52.312-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Display balloon tip notification with message [Installation started.].]LOG]!><time=“07:53:52.312-240” date=“08-17-2020” component=“Show-BalloonTip” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Pre-Installation] :: Spin up progress dialog in a separate thread with message: [Installation in progress. Please wait…].]LOG]!><time=“07:53:52.390-240” date=“08-17-2020” component=“Show-InstallationProgress” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Create scheduled task to run the process [/S] as the logged-on user [composerlaunchpad.exe]…]LOG]!><time=“07:53:53.435-240” date=“08-17-2020” component=“Execute-ProcessAsUser” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: [C:\WINDOWS\System32\schtasks.exe] is a valid fully qualified path, continue.]LOG]!><time=“07:53:53.467-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Working Directory is [C:\WINDOWS\System32].]LOG]!><time=“07:53:53.498-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Executing [C:\WINDOWS\System32\schtasks.exe /create /f /tn PSAppDeployToolkit-ExecuteAsUser /xml “C:\WINDOWS\TEMP\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml”]…]LOG]!><time=“07:53:53.505-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Standard error output from the process: ERROR: No mapping between account names and security IDs was done.
(35,5):UserId:
]LOG]!><time=“07:53:53.741-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“3” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: -PassThru parameter specified, returning execution results object.]LOG]!><time=“07:53:53.754-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Execution failed with exit code [1].]LOG]!><time=“07:53:53.759-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“3” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Close the installation progress dialog.]LOG]!><time=“07:53:53.776-240” date=“08-17-2020” component=“Close-InstallationProgress” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: PS_AppDeployToolkitMain_3.8.2_EN_01 Installation completed with exit code [1].]LOG]!><time=“07:53:53.802-240” date=“08-17-2020” component=“Exit-Script” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Check if PowerPoint is in either fullscreen slideshow mode or presentation mode…]LOG]!><time=“07:53:53.817-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: PowerPoint application is not running.]LOG]!><time=“07:53:53.833-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: PowerPoint is running in fullscreen mode [False].]LOG]!><time=“07:53:53.833-240” date=“08-17-2020” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Display balloon tip notification asynchronously with message [Installation failed.].]LOG]!><time=“07:53:53.864-240” date=“08-17-2020” component=“Show-BalloonTip” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] is a valid fully qualified path, continue.]LOG]!><time=“07:53:53.876-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Working Directory is [C:\Windows\System32\WindowsPowerShell\v1.0].]LOG]!><time=“07:53:53.876-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: Executing [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [PowerShell ScriptBlock]]…]LOG]!><time=“07:53:53.876-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: NoWait parameter specified. Continuing without waiting for exit code…]LOG]!><time=“07:53:53.891-240” date=“08-17-2020” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>
<![LOG[[Installation] :: -------------------------------------------------------------------------------]LOG]!><time=“07:53:53.891-240” date=“08-17-2020” component=“Exit-Script” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“9664” file=“Deploy-Application.ps1”>

any pointers, help greatly appreciated.

I just tried the below and still, nothing I was looking at the logs and it looks like its already picking up the current logged in user. not sure if anybody has run into this problem before

Execute-ProcessAsUser -username "$CurrentLoggedOnUserSession" -Path "$envLocalAppData\Programs\composer-launch-pad\Uninstall ComposerLaunchPad.exe" /S

What is your TempPath set to in the config file? Does the user have access to it?

Thank you, I just tested with the below code base on your recommendation. moving the installer to a public directory where it can be accessed by any none admin user.
I will try to play with the code again. but when I do a PSEXEC test and a test without it. I’m still getting fail.
Once again thank you very much for the help and assistance, I understand this is out of your own will and that is worth gold to many including me. thank you luki

If ($deploymentType -ine 'Uninstall' -and $deploymentType -ine 'Repair') {
		##*===============================================
		##* PRE-INSTALLATION
		##*===============================================
		[string]$installPhase = 'Pre-Installation'

		## Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install, and persist the prompt
		Show-InstallationWelcome -CloseApps 'iexplore' -AllowDefer -DeferTimes 3 -CheckDiskSpace -PersistPrompt

		## Show Progress Message (with the default message)
		Show-InstallationProgress

		## <Perform Pre-Installation tasks here>
		Copy-File -Path "$dirFiles\composerlaunchpad.exe" -Destination "$envCommonDocuments\composerlaunchpad.exe"

		##*===============================================
		##* INSTALLATION
		##*===============================================
		[string]$installPhase = 'Installation'

		## Handle Zero-Config MSI Installations
		If ($useDefaultMsi) {
			[hashtable]$ExecuteDefaultMSISplat =  @{ Action = 'Install'; Path = $defaultMsiFile }; If ($defaultMstFile) { $ExecuteDefaultMSISplat.Add('Transform', $defaultMstFile) }
			Execute-MSI @ExecuteDefaultMSISplat; If ($defaultMspFiles) { $defaultMspFiles | ForEach-Object { Execute-MSI -Action 'Patch' -Path $_ } }
		}

		## <Perform Installation tasks here>
		Execute-ProcessAsUser "$envCommonDocuments\composerlaunchpad.exe" /S

		##*===============================================
		##* POST-INSTALLATION
		##*===============================================
		[string]$installPhase = 'Post-Installation'

		## <Perform Post-Installation tasks here>

		## Display a message at the end of the install
		If (-not $useDefaultMsi) { Show-InstallationPrompt -Message 'You can customize text to appear at the end of an install or remove it completely for unattended installations.' -ButtonRightText 'OK' -Icon Information -NoWait }
	}

LOG

<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="09:29:45.107-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="09:29:45.107-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [PS_AppDeployToolkitMain_3.8.2_EN_01] setup started.]LOG]!><time="09:29:45.154-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Users\TheCookieMonster\Downloads\Noble 115 v3\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Users\TheCookieMonster\Downloads\Noble 115 v3\Deploy-Application.ps1]]LOG]!><time="09:29:45.170-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Users\TheCookieMonster\Downloads\Noble 115 v3\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Users\TheCookieMonster\Downloads\Noble 115 v3\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="09:29:45.170-240" date="08-20-2020" component="PSAppDeployToolkitExt" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [PS_AppDeployToolkitMain_3.8.2_EN_01] script version is [1.0.0]]LOG]!><time="09:29:45.186-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.8.2]]LOG]!><time="09:29:45.192-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.8.2]]LOG]!><time="09:29:45.192-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [3.8.2]]LOG]!><time="09:29:45.192-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [CGLD-L-PC1CZER3.bftg.com]]LOG]!><time="09:29:45.192-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [CHOCOLATE\TheCookieMonster]]LOG]!><time="09:29:45.192-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 10 Enterprise 64-bit 10.0.17763.973]]LOG]!><time="09:29:45.208-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Workstation]]LOG]!><time="09:29:45.208-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN]]LOG]!><time="09:29:45.223-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Physical]]LOG]!><time="09:29:45.255-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.17763.771]]LOG]!><time="09:29:45.270-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [5.1.17763.771 x64]]LOG]!><time="09:29:45.270-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000]]LOG]!><time="09:29:45.286-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="09:29:45.292-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Display session information for all logged on users: 


NTAccount           : CHOCOLATE\TheCookieMonster
SID                 : S-1-5-21-805777034-2026243614-620655208-96593
UserName            : TheCookieMonster
DomainName          : CHOCOLATE
SessionId           : 2
SessionName         : RDP-Tcp#3
ConnectState        : Active
IsCurrentSession    : True
IsConsoleSession    : False
IsActiveUserSession : True
IsUserSession       : True
IsRdpSession        : True
IsLocalAdmin        : False
LogonTime           : 8/19/2020 4:11:18 PM
IdleTime            : 00:00:00.0221447
DisconnectTime      : 8/20/2020 7:10:31 AM
ClientName          :  OATMEAL-COOKIE
ClientProtocolType  : RDP
ClientDirectory     : C:\WINDOWS\system32\mstscax.dll
ClientBuildNumber   : 17134



]LOG]!><time="09:29:45.593-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: [CHOCOLATE\TheCookieMonster].]LOG]!><time="09:29:45.593-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running with user account [CHOCOLATE\TheCookieMonster] under logged in user session for [CHOCOLATE\TheCookieMonster].]LOG]!><time="09:29:45.612-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: There is no console user logged in (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="09:29:45.618-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user is [CHOCOLATE\TheCookieMonster].]LOG]!><time="09:29:45.623-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [CHOCOLATE\TheCookieMonster] has a primary UI language of [EN].]LOG]!><time="09:29:45.628-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_EN].]LOG]!><time="09:29:45.633-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [CHOCOLATE\TheCookieMonster] has a DPI scale factor of [100] with DPI pixels [96].]LOG]!><time="09:29:45.638-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="09:29:45.640-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Skipping attempt to check for and make the task scheduler services healthy because the App Deployment Toolkit is not running under the [NT AUTHORITY\SYSTEM] account.]LOG]!><time="09:29:45.640-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 not detected.]LOG]!><time="09:29:45.656-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="09:29:45.656-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation].]LOG]!><time="09:29:45.656-240" date="08-20-2020" component="PSAppDeployToolkit" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="AppDeployToolkitMain.ps1">
<![LOG[[Pre-Installation] :: Evaluate disk space requirements.]LOG]!><time="09:29:45.724-240" date="08-20-2020" component="Show-InstallationWelcome" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Retrieve free disk space for drive [C:].]LOG]!><time="09:29:45.740-240" date="08-20-2020" component="Get-FreeDiskSpace" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Free disk space for drive [C:]: [443042 MB].]LOG]!><time="09:29:45.771-240" date="08-20-2020" component="Get-FreeDiskSpace" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Successfully passed minimum disk space requirement check.]LOG]!><time="09:29:45.794-240" date="08-20-2020" component="Show-InstallationWelcome" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Get deferral history...]LOG]!><time="09:29:45.794-240" date="08-20-2020" component="Get-DeferHistory" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\PS_AppDeployToolkitMain_3.8.2_EN_01].]LOG]!><time="09:29:45.809-240" date="08-20-2020" component="Convert-RegistryPath" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\PS_AppDeployToolkitMain_3.8.2_EN_01] does not exist. Return $null.]LOG]!><time="09:29:45.825-240" date="08-20-2020" component="Get-RegistryKey" context="CHOCOLATE\TheCookieMonster" type="2" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: User has [2] deferrals remaining.]LOG]!><time="09:29:45.825-240" date="08-20-2020" component="Show-InstallationWelcome" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Check for running application(s) [iexplore]...]LOG]!><time="09:29:45.856-240" date="08-20-2020" component="Get-RunningProcesses" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Application(s) are not running.]LOG]!><time="09:29:45.887-240" date="08-20-2020" component="Get-RunningProcesses" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: User has the option to defer.]LOG]!><time="09:29:45.956-240" date="08-20-2020" component="Show-WelcomePrompt" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: User selected to continue...]LOG]!><time="09:29:47.736-240" date="08-20-2020" component="Show-InstallationWelcome" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Check if PowerPoint is in either fullscreen slideshow mode or presentation mode...]LOG]!><time="09:29:49.789-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: PowerPoint application is not running.]LOG]!><time="09:29:49.805-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: PowerPoint is running in fullscreen mode [False].]LOG]!><time="09:29:49.805-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Display balloon tip notification with message [Installation started.].]LOG]!><time="09:29:49.821-240" date="08-20-2020" component="Show-BalloonTip" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Spin up progress dialog in a separate thread with message: [Installation in progress. Please wait...].]LOG]!><time="09:29:49.905-240" date="08-20-2020" component="Show-InstallationProgress" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Copy file in path [C:\Users\TheCookieMonster\Downloads\Noble 115 v3\Files\composerlaunchpad.exe] to destination [C:\Users\Public\Documents\composerlaunchpad.exe].]LOG]!><time="09:29:50.939-240" date="08-20-2020" component="Copy-File" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: File copy completed successfully.]LOG]!><time="09:29:51.026-240" date="08-20-2020" component="Copy-File" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Create scheduled task to run the process [/S] as the logged-on user [C:\Users\Public\Documents\composerlaunchpad.exe]...]LOG]!><time="09:29:51.065-240" date="08-20-2020" component="Execute-ProcessAsUser" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [C:\WINDOWS\System32\schtasks.exe] is a valid fully qualified path, continue.]LOG]!><time="09:29:51.093-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\WINDOWS\System32].]LOG]!><time="09:29:51.129-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\System32\schtasks.exe /create /f /tn PSAppDeployToolkit-ExecuteAsUser /xml "C:\Users\TheCookieMonster\AppData\Local\Temp\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml"]...]LOG]!><time="09:29:51.135-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Standard error output from the process: ERROR: No mapping between account names and security IDs was done.
(35,5):UserId:
]LOG]!><time="09:29:51.210-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="3" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: -PassThru parameter specified, returning execution results object.]LOG]!><time="09:29:51.221-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution failed with exit code [1].]LOG]!><time="09:29:51.225-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="3" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Close the installation progress dialog.]LOG]!><time="09:29:51.243-240" date="08-20-2020" component="Close-InstallationProgress" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: PS_AppDeployToolkitMain_3.8.2_EN_01 Installation completed with exit code [1].]LOG]!><time="09:29:51.283-240" date="08-20-2020" component="Exit-Script" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Check if PowerPoint is in either fullscreen slideshow mode or presentation mode...]LOG]!><time="09:29:51.298-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: PowerPoint application is not running.]LOG]!><time="09:29:51.298-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: PowerPoint is running in fullscreen mode [False].]LOG]!><time="09:29:51.314-240" date="08-20-2020" component="Test-PowerPoint" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Display balloon tip notification asynchronously with message [Installation failed.].]LOG]!><time="09:29:51.330-240" date="08-20-2020" component="Show-BalloonTip" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] is a valid fully qualified path, continue.]LOG]!><time="09:29:51.348-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\Windows\System32\WindowsPowerShell\v1.0].]LOG]!><time="09:29:51.348-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [PowerShell ScriptBlock]]...]LOG]!><time="09:29:51.364-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: NoWait parameter specified. Continuing without waiting for exit code...]LOG]!><time="09:29:51.364-240" date="08-20-2020" component="Execute-Process" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">
<![LOG[[Installation] :: -------------------------------------------------------------------------------]LOG]!><time="09:29:51.379-240" date="08-20-2020" component="Exit-Script" context="CHOCOLATE\TheCookieMonster" type="1" thread="8944" file="Deploy-Application.ps1">

Three things:

  • Config file entry TempPath is where the files are going to be extracted to. One of the files is a script that is ran by Task Scheduler under the specified user. So the user has to be able to access that folder.
  • The application you are trying to start has to be accessible by this user as well.
  • Execute-ProcessAsUser tries to retrieve the user who is supposed to used for the task, automatically from the list of the logged on users. You might have to use the Username parameter and get and set the username yourself instead of letting the toolkit select it.

Remember the first parameter is -Username and since you didnt supply the name for the parameter then you set the username to “composerlaunchpad.exe” and the program to start is set to “/S”.

Please try this and post the log after:

Execute-ProcessAsUser -Path "$envCommonDocuments\composerlaunchpad.exe" -Parameters "/S" -Wait