Hi Windows folks,
I have a project that has 2 faces when run - a daemon manager (uses sc.exe) that must be executed with Administrator privileges and the rest which runs at normal user privilege level.
I would like to ONLY prompt the user for the admin privileges elevation on the daemon/service start and stop tasks while not prompting for UAC authorization for the rest. I started out just building the app for Administrator access, but that prevents normal access since we can’t interface with the user’s desktop if the whole app is running as Administrator. I’ve also tried using RunAs, but that means that the user must enable the Administrator account and set/know the password.
The only other solution that we’ve come up with is to disable the daemon/service management in the user tool and force the user into the Services app. However, that prevents a couple of other convenience features from being available.
Does anyone have a method that would use the normal UAC elevation for a specific process launched in a shell?