i m using the following code.
ServiceController MyController = new ServiceController();
MyController.MachineName = server_txt.Text.Trim();
MyController.ServiceName = "Service1";
string msg = MyController.Status.ToString();
Label1.Text = msg;
This code work fine in the network computers where i have access. how to change this that it works for the systems present in different domain using credentials. please help me.