Windows Service - login question

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

I am messing around with Windows Services for the very first time - I'm
getting to the installation part, and when I install, it asks for a username
and password.

Is this absolutely necessary?
Also - is there any way to get around it, so that it just runs?
 
Elmo Watson said:
I am messing around with Windows Services for the very first time - I'm
getting to the installation part, and when I install, it asks for a
username and password.

Is this absolutely necessary?

No, mine doesn't ask for a username/password. Did you specify to use the
system account (I can't remember the exact details).
Also - is there any way to get around it, so that it just runs?

You always need to install a service. BTW, I don't use the dot net installer
but just called the API to install the service.
 
I am messing around with Windows Services for the very first time - I'm
getting to the installation part, and when I install, it asks for a username
and password.

Is this absolutely necessary?
Also - is there any way to get around it, so that it just runs?

Elmo,

Michael is correct in that unless you need to, you should not install
the service using the "User" account property (set in the
ServiceProcessInstaller). Instead, use the LocalService,
NetworkService, or LocalSystem account types. Using one of these
account types will install you service without any prompting for
username and password. The only time I have used the "User" account
is when I wanted to install the service with the priviledges of a
specific account.
 

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