Windows Service with ServiceController Class

A

azastawski

I am writing a .Net Windows service in C#. The service
will periodically poll remote computers and use the
ServiceController class to see if specific services are
running.

When I install the service using the local system account,
the service runs, but cannot connenct to remote machines.
When I use the NetworkService account I cannot
successfully install the service. When I use my user
account, everything works fine.

I understand that the user account prompts for the correct
password at installation, but what about when the user's
password changes and the service must access the network?
Will the service present the user's old password to the
remote computers or will it present the computers
credentials where the service is running? I am confused.
 

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