Link to home
Start Free TrialLog in
Avatar of sVirgo
sVirgo

asked on

OpenSCManager and Standard User

How can I run with full access OpenSCManager as a standard user in Vista?
OpenScManager can not start service when I am running as a standard user.
Avatar of jkr
jkr
Flag of Germany image

Well, as stupid as it may sound, but you can't, and that'S the very purpose of not giving certain privileges to standard users. Sorry, but that bhaviour is by design and it's good the way it is...
Avatar of sVirgo
sVirgo

ASKER

I know very well that but I need to give user authority in my program to start/stop services related to my application therefore I need to modify my program to handle it.

Though there are some solutions people have posted but not very clearly.  such as changed login token or execute with shellexecuteex etc.
This is the reason I am here, to take help from experts.
Starting and stopping services from elevated accounts is indeed the solution. To do that, you can create such an account upon the creatoin of such a servicedn and store the PWD in some encrypted way, but that's pretty much all you can do...
Avatar of sVirgo

ASKER

If I start my application as standard user, how can I create a user with elevated rights because the standard user would not have that right. My application will run on customer machine so I don't know what are their settings, users, etc.
Avatar of sVirgo

ASKER

or Can you suggest how to create a user with elevated right at the time of installing my applcation on user machine.

Thank you for all your help.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sVirgo

ASKER

I am running insaller from an admin account. If this works then you this question deserves 500 points.
I will try tomorrow morning.
Avatar of sVirgo

ASKER

This is not going to work, because this solution is not acceptable to my team to add user at the installation time.

So I have to find other way to resolve this problem.
Avatar of sVirgo

ASKER

I want to close my account and this is an open question. So I am closing it.
Hm, there is no way excet that one. If you found an alternative, I am all ears.
Avatar of sVirgo

ASKER

Because I did not like to add a user at run time.
I have found another solution to create a service which will be installed at installation time and that service will perform my functions which are not possible as standard user