Running program

  • Thread starter Thread starter SS
  • Start date Start date
S

SS

I have a piece of program developed in VC++. It only runs with Admin
rights . I want to run this program with minimal user rights . What
are the possibilities of getting this .
Thanks in advance
 
SS said:
I have a piece of program developed in VC++. It only runs with Admin
rights . I want to run this program with minimal user rights . What
are the possibilities of getting this .
Thanks in advance

What does your program do? What does it do (and not do) when run as a
non-admin?

If your program *needs* admin rights, you could divide it into a GUI
application (which the end-user runs with minimal rights) and a back-end
that runs as a service, which does the dirty work (either using the
LocalSystem account or some other privileged account, possibly an
account that the installer creates)

If you are writing for Windows Vista (and yes I realize this is the
Windows XP newsgroup), you could also look into using UAC:
http://en.wikipedia.org/wiki/User_Account_Control
 
What does your program do? What does it do (and not do) when run as a
non-admin?

If your program *needs* admin rights, you could divide it into a GUI
application (which the end-user runs with minimal rights) and a back-end
that runs as a service, which does the dirty work (either using the
LocalSystem account or some other privileged account, possibly an
account that the installer creates)

If you are writing for Windows Vista (and yes I realize this is the
Windows XP newsgroup), you could also look into using UAC:http://en.wikipedia.org/wiki/User_Account_Control
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This application runs in client server architecture and requires soap
sdk before the installation of client component . It runs only on
windows XP with Sp2 . I do not have the code so I will not be able to
split it . I found with admin rights it runs fine but when we assign
*normal user* to open application it generates error after progress
bar reaches 90%. Any clues
Thanks
SS
 
SS said:
This application runs in client server architecture and requires soap
sdk before the installation of client component . It runs only on
windows XP with Sp2 . I do not have the code so I will not be able to
split it . I found with admin rights it runs fine but when we assign
*normal user* to open application it generates error after progress
bar reaches 90%. Any clues
Thanks
SS

You can use PSEXEC to run the program as another user. If you make a
shortcut to PSEXEC with the correct command line arguments, the end-user
will never be prompted for a password.

Example:
PSEXEC.EXE -u Administrator -p mypassword myprogram.exe

http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx
 
Mike said:
Example:
PSEXEC.EXE -u Administrator -p mypassword myprogram.exe

I forgot to mention, there is a command-line argument to bypass the EULA
dialog:

PSEXEC.EXE -accepteula -u Administrator -p mypassword myprogram.exe
 

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

Back
Top