Windows service on server will not start without user logon

I have created a windows service that is basically a file watcher that will not work unless the user is logged in. The service runs on a Windows Server 2003-based computer. It is designed to move files placed in one directory to another directory based on keywords in the file names, but none of the files are moved until I log on and then everything files are moved immediately.

+1


source to share


3 answers


You probably need to configure a service to log in as a user-user, try logging into services, double-click that service and select "log in as an account" and then provide your account details (domain \ username and password) ...

The LocalService account has extensive rights, but, for example, may not have rights to spesific files or folders. You can also try to grant permissions to the file in the LocalService account spesifically. However, I tried to "login" first as it is 1 minute. If that works, you can create a spesific account to start the service, for example, grant permissions to LocalSystem.



Btw: if in network files you can try the NetworkedService account.

+2


source


There must be a setup issue in your service. Windows Server has no problem launching applications without a user logon (otherwise scheduled tasks would be much less useful).



How did you install the service?

0


source


A few clarifications are required:

  • You mentioned

a file watcher that won't work unless the user is logged in to their

How is this implemented? Typically, services are automatically started when the machine boots up because each Windows service runs under a different Windows station with an independent security context

  • You will also mention

but none of the files move until i log in

Doesn't that contradict the first point, since that's what she implemented? [Assume the above point has been implemented]

  • Is the service configured to run under a dedicated account?
  • Has the server been configured to require special permission to move files to FileSystem?
0


source







All Articles