Page 1 of 1

Run as not working - Error the directory name is invalid

Posted: Mon Nov 13, 2017 7:48 am
by buttonbass
32 or 64 bit version of product: 64
Operating system: Windows 10
32 or 64 bit OS: 64

I would like to utilize alternate credentials option in the output settings. However they don't work unless the user that I am attempting to run as or impersonate has a home folder on the computer I am running the application from. It appears another user has posted this problem in the past here viewtopic.php?t=7380

I am running powershell studio 2017 5.4.143

Re: Run as not working - Error the directory name is invalid

Posted: Tue Nov 14, 2017 11:39 am
by davidc
Impersonate and RunAs behave differently.

Impersonate user runs the application under the current user with privileges of the specified user.

RunAs runs the application as specified user, which means all environments folders will point to the RunAs user's path. So if you start the application is a user specific folder (such as My Documents), Windows will throw a directory not found error, because it will not be able to located the application using as the RunAs user.