Windows Service asking for Service Login

T

tshad

I am setting up a Windows Service at a clients site and a window comes up:

Set Service Login

that asks for UserName and Password.

Is this the credentials that the service will logon as or maybe to install
the service?

How do I get it to use the login I am logged in on?

I am the administrator on this machine.

Thanks,

Tom
 
L

Lasse Vågsæther Karlsen

tshad said:
I am setting up a Windows Service at a clients site and a window comes up:

Set Service Login

that asks for UserName and Password.

Is this the credentials that the service will logon as or maybe to install
the service?

How do I get it to use the login I am logged in on?

I am the administrator on this machine.

Thanks,

Tom

A service runs all the time, and needs a specific username context to
run under, it can't run under "whoever is logged on at any given time".
If you want that kind of security, make the program auto-start when the
user logs on instead, and not a service.

If you're the administrator of the machine, and wants the service to
have your access rights, specify your own username and password for it.

Typically though you would create a new user specifically for the
service with the correct access rights according to what it needs to do.
 
C

Chirag Bhavsar

Change the Account for the serviceProcessInstaller to LocalSystem. It can be done by opening ProjectInstaller design and selecting serviceProcessInstaller, properties and change the account property to LocalSystem or manually create the file as previously posted.
 
M

Marc Gravell

Change the Account for the serviceProcessInstaller to LocalSystem

I'd be cautious of doing this personally... network service / local service
are quite good choices for simple scenarios, since they have restricted
access... if a dedicated domain account is needed for some ACLs, then run as
that user... but local system should be used with caution. It is very rare
that a service needs that level of privelege. As a general rule, any app
should have only the priveleges it needs...

Marc
 

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