I have an application that ordinary users should be able to run, but in order to actually function, you need administrator rights.
I tried to make a shortcut that my users launch using "Run as administrator", but this just prompts the UAC when trying to start the application.
Is there any way to increase privileges programmatically, without my users who need to go through the UAC invitation and / or find out the administrator password? From a security point of view, I understand that most applications should not be allowed to do this, so I hope there is some way to do this if I can provide the correct username / password pair or something like that.
The application is written in C #, so a fully-managed solution would be preferable, but p / Invoke Black Magic (or even writing MC ++ Wrapper, which we are not talking about ) would be more acceptable than completely disabling UAC.
source
share