We help IT Professionals succeed at work.
Get Started

Dot Net - Windows Service - To Run with using the current User credentials.

mikesung99 asked
Last Modified: 2013-12-17

I have developed a .NET windows service and this is successfully installed and running on my system. However, what I would like to be able to do is to have the windows service run when a user logs onto the system and to have the windows service run as the logged in user.

Currently I know that to start up a service you can specify Local System Account log or to run as a specific user. Given the possibility of different users accessing the machine, the service will need to be able to run on kind of a per user basis with their credential details. I need to find a way to get the credentials without having to prompt or specify the password

I did consider trying to see if it was possible to implement some kind of windows integrated authentication but I'm not sure if this is possible.

Any help on this matter would be greatly appreciated

Many Thanks

Watch Question
Staff Software Engineer
This problem has been solved!
Unlock 1 Answer and 28 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE