Toggle BlockExecution


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.


Show-InstallationWelcome -CloseApp "someApp" -BlockExecution
Execute-MSI -path someapp.msi -Parameters "/qn"
Set-ExecutionBlock -Name "someApp" -Value $False <=== This is the ask
Execute-ProcessAsUser someApp.exe