Usage:
Show-InstallationWelcome -CloseApp "someApp" -BlockExecution
Expected behavior:
Block the user from executing the named application(s).
Actual behavior:
The app is blocked from executing at any time that the PSADT is running regardless of using Execute-ProcessAsUser.
Desired Behavior:
Some toggle/cmdlet that would allow the SYSTEM account to call the application as the user despite -BlockExecution usage.
Example:
#PreInstallation
Show-InstallationWelcome -CloseApp "someApp" -BlockExecution
#Installation
Execute-MSI -path someapp.msi -Parameters "/qn"
#PostInstallation
Set-ExecutionBlock -Name "someApp" -Value $False <=== This is the ask
Execute-ProcessAsUser someApp.exe