Vista UAC: run as another user with admin rights
-
I posted this question on the c# forum, but they sent me here, so i'll post it here again. situation: i have a program which has a function which needs to be run with elevated rights,but it has to be the elevated rights from another user (the domain administrator) Maybe this is not clear at all, so i'll specify my question user1 runs an application user1 presses a button which results in running another application this other application has a manifest file which says to the uac that it needs to be runned with elevated rights. Vista prompts me if i want to run this application with elevated rights (from user1, with no posibility to give other credentials) But i don't want this second application to be run with elevated rights from user1, but from user2 (user2 is a domain administrator, user1 is not) Over the shoulder credentials is turned of on every pc here, so there is no way the user1 can change to user2 (his domain administrator account). I've been googling for a solution for this problem, but i cannot find anything useful. Is there anyone who can point me in the right direction. I only want vista to prompt me for giving a user and pasword for running this application as a domain admin.. Thanks in advance to anyone who can point me in the right direction
-
I posted this question on the c# forum, but they sent me here, so i'll post it here again. situation: i have a program which has a function which needs to be run with elevated rights,but it has to be the elevated rights from another user (the domain administrator) Maybe this is not clear at all, so i'll specify my question user1 runs an application user1 presses a button which results in running another application this other application has a manifest file which says to the uac that it needs to be runned with elevated rights. Vista prompts me if i want to run this application with elevated rights (from user1, with no posibility to give other credentials) But i don't want this second application to be run with elevated rights from user1, but from user2 (user2 is a domain administrator, user1 is not) Over the shoulder credentials is turned of on every pc here, so there is no way the user1 can change to user2 (his domain administrator account). I've been googling for a solution for this problem, but i cannot find anything useful. Is there anyone who can point me in the right direction. I only want vista to prompt me for giving a user and pasword for running this application as a domain admin.. Thanks in advance to anyone who can point me in the right direction
Does
CreateProcessAsUser
help? -
Does
CreateProcessAsUser
help?