|
-
June 30th, 2012, 01:48 AM
#1
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.
please help... thanks...
Last edited by leetkrew; June 30th, 2012 at 01:53 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|