Click to See Complete Forum and Search --> : Need help starting Windows Service


codeguy03
October 9th, 2009, 10:04 AM
As a Network Service.

It runs fine as a local service until it hits code that needs to copy files to the network. Then I get access denied errors.

So I searched Google and came up to run it as a Network Service. Now I cant even get the thing to start. It says Error 5 Access Denied!

Can someone guide me on how to get this to run as a Network Service?

RaleTheBlade
October 10th, 2009, 12:59 AM
Either run it as a System service (not a good idea) or run it as a User service and when the service is installed it will prompt you for a user name and password that it will use to emulate permissions with.

If you decide to take the User route, which you should, you need to put the machine name before the user name when you assign the credentials to the service. Or, if the user account is on the local machine, you can just put a .\ before the user name.

MadHatter
October 10th, 2009, 01:05 AM
I would create a service user, grant it log on permissions in your local security policy (so the service can run). Add the necessary permissions to the file system that the service will access (but no more than absolutely necessary). If you are copying files to a network file share, your user will need to be a domain user and added to whatever user groups have access to the share (on the remote location).

good luck.