I have a requirement that i want to get all the system services running under system which will display the Services either in the Started or in Stopped.
How can i achieve this in C# using ASP.Net.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you need to use:
There is also overload that accept computer name if you want to get the list on a remote computer.
http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.getservices.aspx