The logs aren’t helpful at all. I can run it locally as admin and everything works fine, but as soon as it runs via Company Portal and Intune all that happens is that the progress bar briefly appears and tells me it is installing then it disappears.
Logs:
[Installation] :: [C:\WINDOWS\System32\schtasks.exe] is a valid fully qualified path, continue. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
---|---|---|---|
[Installation] :: Working Directory is [C:\WINDOWS\System32]. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Executing [C:\WINDOWS\System32\schtasks.exe /create /f /tn PSAppDeployToolkit-ExecuteAsUser /xml C:\WINDOWS\TEMP\PSAppDeployToolkit\PSAppDeployToolkit-ExecuteAsUser.xml]… | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: PassThru parameter specified, returning execution results object. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Execution completed successfully with exit code [0]. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Trigger execution of scheduled task with command [C:\WINDOWS\IMECache\0ef084e0-1b38-4d15-b100-8f3b85281c91_1\Files\Postman-win64-8.5.1-Setup.exe -s] as the logged-on user [DOMAIN\username]… | Execute-ProcessAsUser | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: [C:\WINDOWS\System32\schtasks.exe] is a valid fully qualified path, continue. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Working Directory is [C:\WINDOWS\System32]. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Executing [C:\WINDOWS\System32\schtasks.exe /run /i /tn PSAppDeployToolkit-ExecuteAsUser]… | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: PassThru parameter specified, returning execution results object. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Execution completed successfully with exit code [0]. | Execute-Process | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
[Installation] :: Waiting for the process launched by the scheduled task [PSAppDeployToolkit-ExecuteAsUser] to complete execution (this may take some time)… | Execute-ProcessAsUser | 6/4/2021 3:43:14 PM | 22860 (0x594C) |
Everything looks fine but it does not install. For what its worth, I’ve tried it without and with the ServiceUI.exe for an interactive install. The same thing happens without it, I just don’t see the brief progress bar pop up.
The bar just says it is installing then disappears after maybe a couple seconds.
What am I doing wrong here? I’m basically copy-pasting install scripts from itninja. I’ve tried multiple version. They work great when run locally as admin, but as soon as I trigger from Intune I get the same behavior from them all.