المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Vista UAC: run as another user with admin rights



C# Programming
04-28-2009, 01:40 PM
I have an application with a function which needs to be run as administrator, but it needs to be the administrator of another account.

Maybe this is not clear at all, so i'll specify my question http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif

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

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

edit: should i have posted this under the vista forum :~