Run as not working - Error the directory name is invalid

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
buttonbass
Posts: 1
Last visit: Mon Mar 13, 2023 11:27 am

Run as not working - Error the directory name is invalid

Post 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
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post 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.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.