Hello everyone,
If I have enough priveleges, how could I get and access the services on a remote computer if I know the remote computer machine name? For example, I want to enumerate all the services on a remote computer and stop a service if its name matches some rules?
thanks in advance,
George

Ryan AlfordRank #1,411 · 1.2K reputationPosted Aug 28, 2008, 9:06 AM EDT
foreach (Process p in processes)
{
if (p.MainModule.ModuleName == whateverYouWantToCompareTheNameTo)
{
p.Kill();
}
}
George GeorgeRank #1,736 · 870 reputationPosted Sep 1, 2008, 5:18 AM EDT
Cool!
regards,
George