I know I'm annoying, since it works fine via SCCM Agent or Intune Agent, I would just be grateful if there was a solution, as this makes the pre-check easier and worked before 4.1.3
I can't always test all the important options when you make improvements so quickly, sorry
I stopped testing it under SCCM in 4.1.2 and later, as I had to use Intune primarily.
- With 4.1.3, without
-AppProcessesToClose, I was able to test it without errors. - With 4.1.4, I didn't have
Show-ADTInstallationPrompt, but-AppProcessesToCloseworked without errors. - With 4.1.5,
-AppProcessesToCloseworks via RunAS Admin.
I usually test beforehand using a normal user and run the installation via CMD as an administrator. The normal user is necessary because only they have the rights to add-ons if functional testing of the software is necessary.
- With SCCM, I can live with it if I have to, as I can correct issues relatively quickly.
- With Intune, it's always more time-consuming and requires patience until it's available (depending on the hairdryer, it takes 3-x hours).
- Currently, I'm not allowed to test Autopilot Required yet.
It's the same in all versions:
nur Deutsch
if ($MyLanguage -like "de-DE" -or $currentUILanguage -like "de\*" )
{
$MyMessage="Bitte Outlook starten, Installation abgeschlossen"
}
nur French
if ($MyLanguage -like "fr-Fr" -or $currentUILanguage -like "fr\*" )
{
$MyMessage="Veuillez démarrer Outlook, installation terminée"
}
if ($MyLanguage -ne "de-DE" -and $MyLanguage -ne "fr-Fr" -and $currentUILanguage -ne "DE" -and $currentUILanguage -ne "Fr") {$MyMessage="noLanguage"}
if ($RunAsActiveUser) {if (!$adtSession.UseDefaultMsi) {Show-ADTInstallationPrompt -Message $MyMessage -ButtonRightText 'OK' -Icon Information -NoWait} }
I tried different things
$MyUser=$RunAsActiveUser.Username
V1 if ($MyUser) {if (!$adtSession.UseDefaultMsi) {Show-ADTInstallationPrompt -Message $MyMessage -ButtonRightText 'OK' -Icon Information -NoWait} }
V2 if ($MyUser) {Show-ADTInstallationPrompt -Message $MyMessage -ButtonRightText 'OK' -Icon Information -NoWait}
V3 Show-ADTInstallationPrompt -Message $MyMessage -ButtonRightText 'OK' -Icon Information -NoWait
always the same error
per RunAS Admin:
\[Post-Install\] :: The calling account \[xxx\\xxx\] is running interactively, but not as the logged on user and is missing the permission(s) \['SeAssignPrimaryTokenPrivilege'\] necessary to create a process as another user. The client/server process will be created as the calling account, however PSAppDeployToolkit's client/server process is designed to operate directly as a logged on user. As such, it is recommended to either log on directly to Windows using this account you're testing with, assign this account the missing permissions, or test via the SYSTEM account just as ConfigMgr or Intune uses for its operations. Get-ADTClientServerUser 10.09.2025 15:16:35 5144 (0x1418)
\[Post-Install\] :: Could not find a valid logged on user session for \[xxx\\xxx\].
Error Record:
Message : Could not find a valid logged on user session for \[xxx\\xxx\].
FullyQualifiedErrorId : NoActiveUserError,Start-ADTProcessAsUser
ScriptStackTrace : bei Start-ADTProcessAsUser, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 22714
bei Private:Invoke-ADTClientServerOperation, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 1430
bei Show-ADTInstallationPrompt, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 18357
bei Install-ADTDeployment, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\Invoke-AppDeployToolkit.ps1: Zeile 382
bei , C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\Invoke-AppDeployToolkit.ps1: Zeile 576
bei , : Zeile 1
TargetObject : Value
-----
xxxx\\xxxx
PositionMessage : In C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1:1430 Zeichen:17
+ ... & $Script:CommandTable.'Start-ADTProcessAsUser' @sapauParsapauParsapauParsapauPar ...
+ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
Start-ADTProcessAsUser 10.09.2025 15:16:36 5144 (0x1418)
\[Post-Install\] :: An unhandled error within \[Invoke-AppDeployToolkit.ps1\] has occurred.
Error Record:
Message : Could not find a valid logged on user session for \[xxx\\xxx\].
FullyQualifiedErrorId : NoActiveUserError,Show-ADTInstallationPrompt
ScriptStackTrace : bei Start-ADTProcessAsUser, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 22714
bei Private:Invoke-ADTClientServerOperation, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 1430
bei Show-ADTInstallationPrompt, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\PSAppDeployToolkit\\PSAppDeployToolkit.psm1: Zeile 18357
bei Install-ADTDeployment, C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\Invoke-AppDeployToolkit.ps1: Zeile 382
bei , C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\Invoke-AppDeployToolkit.ps1: Zeile 576
bei , : Zeile 1
TargetObject : Value
-----
xxx\\xxx
PositionMessage : In C:\\Temp\\101160-Harmonie-365x64 10.7.10006 EN 4.1.5\\Invoke-AppDeployToolkit.ps1:382 Zeichen:5
+ Show-ADTInstallationPrompt -Message $MyMessage -ButtonRightText ' ...
+ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
Invoke-AppDeployToolkit.ps1 10.09.2025 15:16:36 5144 (0x1418)








