Hi,
I am using below code to get all the windows services in a server. I want to know the details of Domain\User, windows service is logged in with. How can achive this.
ServiceController[] lFnGetAllServicesInServer(string aStrServer)
{
ServiceController[] lArrObjServiceController = null;
try
lArrObjServiceController = ServiceController.GetServices(aStrServer.Trim());
return lArrObjServiceController;
}
catch (Exception ex)
finally
Please help out