using System;
using System.Management;
publicclass RemoteConnect
{
publicstaticvoid Main()
{
EnumerationOptions opt = new EnumerationOptions();
opt.EnumerateDeep = true;
ManagementClass c = new ManagementClass("CIM_Service");
foreach (ManagementObject o in c.GetInstances(opt))
Console.WriteLine(o["Name"]);
}
}