Service Startup

G

Guest

Is there a trick to getting a Windows Service to start before a user has logged on to a machine?

Using VS.net 2003 on a Windows 2000 machine, I have built a Windows service using vb.net . I have set the startup type to automatic, and the service starts, but after a user has logged on. I was expecting it to start when the machine boots. Is there something else I need to do to get the service started before the login?
 
E

Elp

Mike Parris said:
Is there a trick to getting a Windows Service to start before a user has logged on to a machine?

Using VS.net 2003 on a Windows 2000 machine, I have built a Windows
service using vb.net . I have set the startup type to automatic, and the
service starts, but after a user has logged on. I was expecting it to start
when the machine boots. Is there something else I need to do to get the
service started before the login?

A Windows Service does start as soon as Windows has started. However, i
think that windows doesn't wait until all services are started before
displaying the login dialog box so what may happen is that you are logging
in while windows is still in the process of starting all its services. I
don't think that there is an easy way to prevent Windows from displaying the
login dialog box before your particular service has been started. The only
way i could think of would involve doing a custom GINA.
 
G

Guest

Mike Parris said:
No it's not that the password dialog appears before the service starts. I would be happy with that But however long you wait, the service does not start until a user has logged in.

Got it. Seems that if the service uses beep it does not start. Writing to a file occurres before a user has logged in.
 

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