Forum Discussion

albrechtmyers's avatar
albrechtmyers
Occasional Visitor
5 years ago

RunAs mode issue

Hi,

 

Could someone help me with an issue I'm currently experiencing.

 

I'm using the RunAs mode to allow me to launch an application under a user account that is different from the actual logged on account

 

Within the Windows registry our software will add a default database key corresponding to the current user under HKEY_CURRENT_USER so when an application is launched it knows what database to connect to.

 

When I launch an application using a different user, however, it connects to the default database corresponding to this user, which so happens to be a different database

 

I know how to update the registry but when I do this at run time it updates the default database fo the current user. Is there anyway when using RunAs to update the registry key for the specific 'RunAs' user

 

https://4kpornindex.com/