Hi all, apologies if this has already been covered but I can’t find an answer.
I’m trying to deploy a user-based install, changing RequireAdmin to $false in config.psd1 and getting an error when I execute Invoke-AppDeployToolkit.exe. It runs fine when I set require admin to $true but obviously installs under the admin account.
The error I get is “An error occurred while running Invoke-AppDeployToolkit.ps1. Exit code: 1”
I’ve signed the script and no joy. We are forced to use constrained language mode.
PSADT is NOT going to work in constrained language mode.
It uses .Net stuff and that’s not permitted in constrained language mode.
I would run PSADT from a location where users cannot write to but can read and execute from.
From there, run as user (if that’s what you really need) but in Full language mode.
I don’t know how v3 would have worked in constrained language mode. Regardless, you need to run the PowerShell script directly from powershell.exe to see why you’re getting that exit code of 1. The exe is for when you’ve completed your deployment and you’re putting it into Intune or SCCM. When you’re developing, forget it even exists.
I’m just as confused as to why/how. I’m just coming back around to this so will run directly in PowerShell. Thanks for the tip, I’ve always ran the deploy-application.exe.