473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Service Startup

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?
Jul 21 '05 #1
2 1984
Elp

"Mike Parris" <Mike Pa****@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
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.
Jul 21 '05 #2


"Mike Parris" wrote:


"Elp" wrote:

"Mike Parris" <Mike Pa****@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
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.


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.
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Alan Pretre | last post by:
I have a Windows service that is having trouble starting up at boot time. It requires SQL Server to start up. I have added MSSQLSERVER to the service dependencies (as explained in...
15
by: Chakkaradeep | last post by:
Hi all, i have written a Service,now i want to execute another application (for eg;calc.exe) in the service....how will i perform it??... i tried using this.... /**************Executing a...
3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
4
by: FB's .NET Dev PC | last post by:
On one PC, I have several services, all of which need to run, some of which I am writing, and some of which (such as SQL server) I am not writing. My overall goal is to have a restartable, stable...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
9
by: Rotzooi | last post by:
Hi, I have a VB.NET Service application that's running fine under the Local System account. But for configuration purposes I don't want to be dependent on modifying the registry manually or...
5
by: Lamis | last post by:
Hi, i have just created my first Windows service and it is working great.. my problem is that I need to start an application in my service: protected override void OnStart(string args) {...
2
by: Cubaman | last post by:
Hello everybody. I'm currently developing a windows service. In OnStart a launch two threads that carry on some work while the service is running. My problem comes from the fact that once the...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
2
by: rqcoder | last post by:
Is there a way to change a Service's startup type somewhere in the .net framework? I've been messing around with the System.ServiceProcess namespace which allows me to start, stop and pause...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.