Hi all,
When calling the PowerShell Commander, I am specifying the execution user as parameters "Username" and "Password". However, the called PowerShell script seems to be running under the OutSystems execution user.
I am obtaining the execution user within PowerShell using the following command:--$currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name--What could be the reasons for not being able to specify the execution user?Thank you.
Hi,
If the PowerShell script is still running under the OutSystems service user, it’s likely because the Username and Password parameters are not being used to launch a new process under those credentials. By default, scripts executed from OutSystems will run under the platform’s service account unless explicitly invoked using tools like Start-Process with the -Credential parameter.
Let me know if you'd like help with an example using Start-Process to run it under a different user.
Thanks!