Install command for PSAppDeployToolkit v4 via WorkSpace One UEM

I am trying to deploy a zipped file with PSAppDeploToolkit, but it looks like the install command is not right.

The file does get downloaded and unzipped in the AppDeploymentCache. When running the installation locally I dont have any problem.

What I tried:

  • ServiceUI_x64.exe -Process:Explorer.exe .\Invoke-AppDeployToolkit.exe
  • ServiceUI_x64.exe -Process:Explorer.exe Invoke-AppDeployToolkit.exe
  • .\ServiceUI_x64.exe -Process:Explorer.exe .\Invoke-AppDeployToolkit.exe
  • .\ServiceUI_x64.exe -Process:Explorer.exe Invoke-AppDeployToolkit.exe
  • .\Invoke-AppDeployToolkit.exe .\Invoke-AppDeployToolkit.ps1
  • .\Invoke-AppDeployToolkit.exe Invoke-AppDeployToolkit.ps1
  • Invoke-AppDeployToolkit.exe .\Invoke-AppDeployToolkit.ps1
  • Invoke-AppDeployToolkit.exe Invoke-AppDeployToolkit.ps1
  • Powershell.exe -executionpolicy Bypass Invoke-AppDeployToolkit.ps1
  • Powershell.exe -executionpolicy Bypass .\Invoke-AppDeployToolkit.ps1
  • Powershell.exe -executionpolicy Bypass .\Invoke-AppDeployToolkit.exe
  • Powershell.exe -executionpolicy Bypass Invoke-AppDeployToolkit.exe
  • .\Invoke-AppDeployToolkit.ps1
  • Invoke-AppDeployToolkit.ps1
  • .\Invoke-AppDeployToolkit.exe
  • Invoke-AppDeployToolkit.exe

I have added the following files to the root:

  • ServiceUI_x64.exe
  • ServiceUI_x86.exe
  • install_forceinteractive.cmd
  • repair_forceinteractive.cmd
  • uninstall_forceinteractive.cmd

I am going to try the same with Intune to see if it is MDM related. Will update this when I have done this.

It would be worth having a look at the logs - maybe it’s a permissions issue.

N.B. When you post code to this forum, if you (on a new line) press Ctrl+e (or click on the </> button on the toolbar) it will insert a preformatted code block, insert your code between the 3 escape characters (replacing ‘type or paste code here’)
This will give us a clearer idea of what your code actually looks like

You could edit your original post to re-use that

1 Like

Which log are you talking about?

I did check the eventviewer, but nothing came up there.

As you are using version 4.0.x (and I am unsure if you have customised any of the logging locations) you should refer to this: Customizing Deployments · PSAppDeployToolkit

by default, PSADT v4 log files are placed in C:\Windows\Logs\Software

It looks like the log is not created and the issue is UEM related. When I run Invoke-AppDeployToolkit.exe from the cache folder ( %programdata%\AirWatchMDM\AppDeploymentCache) it give me a 60008 error code. When I copy all the files to a different location (IE Desktop) it starts normally.

I just wrapped the package to .intunewin and deployed it with Intune. It works as how it should be with the following install command: .\ServiceUI_x64.exe -Process:explorer.exe Invoke-AppDeployToolkit.exe

1 Like

Please run the .ps1 file via PowerShell from this location, not the exe, as this will give the exact information as to what’s going wrong.

Please also update to 4.0.5 prior as that’s the latest version now and has a lot of fixes, including one for when the path contains curly braces ({/}) that could help here if VMware Workspace ONE cache folders are named by UUID or something.

1 Like

I downloaded the 4.0.5 version, did not modify anything, wrapped it into a .zip file and uploaded to UEM with the following install command: .\ServiceUI_x64.exe -Process:explorer.exe Invoke-AppDeployToolkit.exe

No log is created, UEM only gives the message: Cannot install

But! When I run the Invoke-AppDeployToolkit.exe from the cache folder(which has the { /}) it runs perfectly.

FIXED IT!!!
This was a really stupid problem…

So, I added a detection rule script in UEM. The same one I always used for Intune. Somehow UEM could not work with this script. After I removed the script, it showed as how it should be.

2 Likes

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