Hello,
I currently have a problem that I want to run a powershell script in the PSADT. However, the program to be installed must be executed as Current User, otherwise it ends up in nowhere.
Execute-Process -Path “$PSHOME\powershell.exe” -Parameters “-file "$dirFiles\ForceInstall.ps1
"” -Wait
This works, but clearly not as the current logged in User.