If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

launch application from service

hello...

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

Code:

ShellExecute hwnd, "open", var_file , vbNullString, var_path, 1

this code works well but it is hidden with currently logged user or guest.

Re: launch application from service

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.

Re: launch application from service

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...

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.