my code installation is "Start-ADTProcess -FilePath 'HIT.Phone-1.0.43.Setup.exe' -ArgumentList '/S'"
when running locally, it installs properly, but then when installing via Intune it don’t install
In intune I am installing as “System context” i’ve tried as “User context” but keeps not installing
If the HIT.Phone-1.0.43.Setup.exe must run AS THE USER and it’s the only installation step, then installing as the user is the way to go.
If you are telling Intune to user in the “User context”
You MUST also do the same for PSADT by modifying the Config\Config.psd1 file. RequireAdmin = $False
Making the HIT.Phone-1.0.43.Setup.exe create a log file could also be useful.
I have another question if you can help,
I already followed your suggestion and it worked, but now when i install it via intune before the installation a window CMD is prompted, i guess it’s because of using Service.UI
my install command via intune is .\ServiceUI.exe -Process:explorer.exe Invoke-AppDeployToolkit.exe
When i use this command via System-context that CMD window does not appear but in “User-context” that windows display.
Agreed - user context apps should always be deployed in user context, rather than trying to execute a process as user from the system account. And when you deploy in user context, the process is visible, so ServiceUI is no longer required.