Configure .exe to always runas certain user in Windows??

R

ricolee99

Hi There,

There is an application, 'A' that runs as a service, which starts up my
application, 'B'. Application A also invokes other applications in our
company. I would like application B to run as a certain user. The
problem is that 'A' only takes in the path to application 'B' as input
for invoking (input: "c:\Location_of_App_B"). That means when 'A'
executes my application, it cannot run with the command line option,
'runas'.


Is there a way to configure my application in Windows such that
whenever it's executed, it always runs under a certain user account?

Thanks so much in advance!

~Sharon
 
K

karl levinson, mvp

Can you create a script such as a batch file, or an executable such as a
batch file that has been converted to a .COM or .EXE file using something
like bat2com from www.google.com? Put the runas command into the batch file
and have the application run that.

If that method does not permit you to enter the appropriate password, you
can create a runas icon that has the password already in it, and have the
script or the application run that shortcut. That method might be easier
anyways.

http://securityadmin.info/faq.asp#runas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top