Service with Admin logon

G

Guest

Hello!
I want to start a program as a service running with administrator rights. I
have made a component adding a Service Data (in resources). Here are the
settings:
ServiceName: MyService
StartType: 2
StartName: .\Administrator
ServiceType: 16
Password: admin
errorControl: 1

When I boot the image this service doesn't start. When I try to start it
manually, this message is displayed:
Could not start the MyService service on Local Computer.
Error 1069: The service did not start due to a logon failure.

If I re-enter the password in the service properties, it starts properly.

I don't understand where is the problem!???
 
A

Adora Belle Dearheart

Papatchel said:
Hello!
I want to start a program as a service running with administrator rights. I
have made a component adding a Service Data (in resources). Here are the
settings:
ServiceName: MyService
StartType: 2
StartName: .\Administrator
ServiceType: 16
Password: admin
errorControl: 1

When I boot the image this service doesn't start. When I try to start it
manually, this message is displayed:
Could not start the MyService service on Local Computer.
Error 1069: The service did not start due to a logon failure.

If I re-enter the password in the service properties, it starts properly.

I don't understand where is the problem!???

You need to give the Administrator user the log on as a service right.
Putting the credentials into the control panel does it, but it can be
done with a script. I can't remember offhand how.
 
G

Guest

I tried giving the Administrator user the log on as a service right. But when
I try to start the service, the error 1069 is still displayed.
I tried the following:
I made 2 services whith exactly the same settings. I gave the Administrator
user the log on as a service right. The error message is displayed for both
services.
When I re-enter the password for the first service: it starts (without
displaying any notification), but the second remains with error 1069.
The password in the service setting on TD and the password for Administrator
user are the same!
What detail I'm missing?
 

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