what am I trying to make is a program that will allow "guest" to run an application as admin without asking for a password...
runas.exe /savecred /u:admin asks for a password for the first run. Making a vbs file is not feasible because it sometimes lost its focus on a command prompt. registering "run as different user" from windows explorer will definitely ask for password too. I tried windows scheduler too...
My last option left is running as service. I know that service has no gui. I coded a program that runs as service. Its task is to run 3rd party application... notepad.exe for example
My service is running this program as "administrator" under guest account (I set it on services.msc). My program launches notepad.exe running as administrator but it wont show up on "guest" or currently logged user's desktop
Might be able to make it work with Windows 2000, but after that, I really doubt it. With each version, it gets harder. GUEST account has NO privileges, and cannot access other accounts. Make a USER account with minimal privileges instead.
I Personally don't like this idea.. and it opens up the PC for Malware attack.. The UAC is there for a reason, To Warn the user about ANY PROGRAM that is attempting to run as Administrator, If the user accepts it , then let it run..
Like David put it ... Create a User Account with the required minimal privileges for the app to run, and use this account on the system...
Bookmarks