15
Views
1
Comments
[Powershell Commander] The specified execution user is not being applied
powershell-commander
Web icon
Forge asset by Danny Prager
Application Type
Traditional Web

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.

2025-09-25 14-38-22
Lokesh Kumar Yadav

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!

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