Error PSADT 4.1.5 diferrent user

Hey,

today a was wondering about and error when using psadt 4.1.5...
Logged on with User Name "A" no admin rights.
Run the a standard packages installation by hand, with an other user "B-adm" with admin right.

The installations starts, run throu all the parts fine, but at the end....

Right after: [Install] :: Refreshing the Desktop and the Windows Explorer environment process block.

[Install] :: An unhandled error within [Invoke-AppDeployToolkit.ps1] has occurred.
Error Record:
-------------
 
Message               : Could not find a valid logged on user session for [TEST\B-adm].
 
FullyQualifiedErrorId : NoActiveUserError,Start-ADTMsiProcess
ScriptStackTrace      : bei Start-ADTProcessAsUser<Process>, C:\_Data\_Packages\Test-PSADT-Bilder\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 22714
                        bei Private:Invoke-ADTClientServerOperation, C:\_Data\_Packages\Test-PSADT-Bilder\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 1435
                        bei Update-ADTDesktop<Process>, C:\_Data\_Packages\Test-PSADT-Bilder\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 25016
                        bei Start-ADTMsiProcess<Process>, C:\_Data\_Packages\Test-PSADT-Bilder\PSAppDeployToolkit\PSAppDeployToolkit.psm1: Zeile 20722
                        bei Install-ADTDeployment, C:\_Data\_Packages\Test-PSADT-Bilder\Invoke-AppDeployToolkit.ps1: Zeile 147
                        bei <ScriptBlock>, C:\_Data\_Packages\Test-PSADT-Bilder\Invoke-AppDeployToolkit.ps1: Zeile 302
                        bei <ScriptBlock>, <Keine Datei>: Zeile 1
 
TargetObject          : Value
                        -----
                        TEST\B-adm
 
PositionMessage       : In C:\_Data\_Packages\Test-PSADT-Bilder\Invoke-AppDeployToolkit.ps1:147 Zeichen:5
                        +     Start-ADTMsiProcess -Action 'Install' -FilePath "$($adtSession.Di ...
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This will be patched in 4.1.6. You can try a pre-4.1.6 release here: - Fix incorrect double negation on `$isSyncDone` within `Test-ADTEspA… · PSAppDeployToolkit/PSAppDeployToolkit@2faeb0b · GitHub. All you'd need to do is replace your PSAppDeployToolkit folder with one from one of the ZIP files at this link.

Regardless, our recommendation is to not test packages via an elevated admin account, but to test them via psexec -s or an on-demand scheduled task configured to run as SYSTEM.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.