Kaseya Community

Agent Procedure - Run PS1 script with full GUI

This question is not answered

Hi all,

I have many PS1 scripts which I run with agent procedures very successfully, however these are obviously always run silently.

Is there a way to have my PS1 file run with full GUI interaction when it is executed via executePowershellCommand32BitSystem(...

Thanks in advance,


All Replies
  • You might try executePowershellCommand32BitUser() instead. The key is that when Kaseya runs any commands, by default it is running in the system context. Anything running in System context cannot display a GUI, as it has no access to the Windows desktop of the current user context to do so. Unfortunately, if the script is requiring access to something that the current user context has no permission to, that may pose a separate problem.