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
Run as not working - Error the directory name is invalid
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.
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.
- buttonbass
- Posts: 1
- Last visit: Mon Mar 13, 2023 11:27 am
Re: Run as not working - Error the directory name is invalid
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.
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.
SAPIEN Technologies, Inc.