Issue running scripts with alt. creds with the "integrated env"

Running into an issue where im trying to run a script with the default environment “integrated” and specify different creds using the “Run As” dropdown.

The following is still running as system when it should be using what was in the “run as”. Note line 5 (whoami) is returning system when it should be the service account I specified.

Running the same script but with the 7.1.3 environment (which is correct):

PSU Version: 2.1.2

Hmmm this is a limitation of the integrated environment. The problem is the integrated environment doesn’t launch an external process that it can elevate as different credentials. I’ll open an issue to get this fixed though since we should be able to impersonate.

1 Like