Run my C # app with admin rights

I have an application that I need to distribute to 5000 computers in my business domain via SCCM and I am having Windows security issues. The thing is, my application requires administrator rights to access registry keys and run some "specific" tasks on the local system, and all users in the domain (except for the IT support team, of course) do not have such privileges.

I was wondering that I can get windows to call the launcher on startup next, this launcher will get the admin username and password on the app server and then launch the app with those credentials. But I am having difficulty doing this task when I am new to C # (I am a Java programmer) and I have not found a way to use the runas command with username and password information.

Otherwise it would be ideal if I could use non-prompt UAC admin privileges for anonymous windows.

Can anyone help me?

+3


source to share


1 answer


I'm not sure what I'm about to say, but just did some research that might help you.

You can try to schedule a task to run your program and configure this schedule to run it with administrator rights at startup.

Scheduling a task



Then you just have to find how easy it is to program this task for all your computers.

Hope this helps you

0


source







All Articles