PSADT v4 Execution intune with invoke_serviceui.ps1

hey,
I am trying to use the new PSAppDeployToolkit with Intune. I read the manual and examples regarding ServiceUI. I created my app and configured it as usual, using install_forceinteractive.cmd for installation and uninstall_forceinteractive.cmd for uninstallation.

However, when I run the application from the company portal, the following message appears: “An error occurred while running Invoke-AppDeployToolkit.ps1. Exit code: 1”. In the invoke-appdeploytoolkit.exe log, it states: “Commencing invocation … Administrator rights are required. The verb ‘RunAs’ will be used with the invocation. No ‘-File’ parameter specified on command-line”.

On the Intune side, I set the app’s Install behavior to “System”.

1 Like

Hi @Elric, the ServiceUI examples weren’t working at all from my own testing. I’ve updated them in our develop branch which you can obtain here: PSAppDeployToolkit/examples/ServiceUI at develop · PSAppDeployToolkit/PSAppDeployToolkit · GitHub

Replace any previous copies of the batch files and Invoke-ServiceUI.ps1 with these and you should be golden.

2 Likes

Hi @mjr4077au,

Great news! I’ve tested the script from the dev branch, and it’s working perfectly.

Thank you so much for your quick response and excellent work!

3 Likes