If I am an administrator and I run a program under a standard user account (shift + right click -> run as different user), which user's environment is used? The program in question happens to read some keys from the current user registry hive. Will it use the registry hive of the user that launched the application (the administrator in this case) or the user the program is being run under? I have a feeling the answer is the latter. If that is the case is it possible to run the program as the standard user but have it use my environment? Is that an absurd thing to even try and do?
I'm trying to understand why the user is having issues connecting to a web service. The program in question happens to be the client that connects to the service. I first tried running some tests with PowerShell (sending HTTP requests as the user) but the results were... more confusing than helpful. I want to run the client itself as the user and monitor what happens but if I do so using their environment it will send real data to the service - possibly causing issues with their service. My personal environment is set up to use a demo account and will not muck anybody's service