Я использую следующий код.
ServiceController MyController = new ServiceController();
MyController.MachineName = server_txt.Text.Trim();
MyController.ServiceName = "Service1";
string msg = MyController.Status.ToString();
Label1.Text = msg;
Этот код отлично подходит для сетевых компьютеров, на которых у меня есть доступ. Как изменить это, чтобы он работал для систем в разных доменах с использованием учетных данных?