336
Views
5
Comments
Can I run Powershell scripts from Outsystems app?
Question
Does anyone know if there is a way to run Powershell scripts from an Outsystems app and process the results? If so, how?
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hi Gerry,

I think that you can do this using a C# extension, for example.
Take a look at this example, maybe it helps:
https://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C
Share with us your results and good luck.

Best Regards,
Gonçalo M.
2014-02-13 10-06-38
Ricardo Silva
Be advised that extensions run in the context of a worker process which might (greatly) limit what they're allowed to do.
2022-11-12 11-28-30
Gonçalo Martins
Staff
You're right Ricardo..that's a very important note that I forgot to mention..
I just did that suggestion because, as I know, it's the only way to perform that issue.
2012-08-01 17-33-40
Gerry
Thanks for the help. I think what I'll wind up doing is calling out to get health information from Microsoft Exchange. if anyone know of any limitations on doing that, please let me know.
2023-10-06 09-22-20
Tiago Bernardo
Champion

Hi!

I know this thread is old but just to let you know that since the beginning of 2017 it exists the forge component "Powershell Commander" that allows you to run PowerShell commands/scripts. I have used it and it works but it is somewhat limited in the context of a Personal Environment. Although, in the description of the component it states that it includes impersonation to run the PowerShell commands under a different User, which might be helpful in the context of a real (not cloud) environment, but I haven't tried that myself.

Cheers,

Tiago Bernardo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.